Skip to content

Commit fee71ad

Browse files
committed
zfs_uiomove_iter: ignore the "skip" offset
For UIO_ITER, we are just wrapping a kernel iterator. It will take care of its own offsets; doing skips of our own just leads to the kernel running off the end of the iterator later. Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
1 parent 246e588 commit fee71ad

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

module/os/linux/zfs/zfs_uio.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,6 @@ zfs_uiomove_iter(void *p, size_t n, zfs_uio_rw_t rw, zfs_uio_t *uio,
233233
{
234234
size_t cnt = MIN(n, uio->uio_resid);
235235

236-
if (uio->uio_skip)
237-
iov_iter_advance(uio->uio_iter, uio->uio_skip);
238-
239236
if (rw == UIO_READ)
240237
cnt = copy_to_iter(p, cnt, uio->uio_iter);
241238
else

0 commit comments

Comments
 (0)