Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fbef206 authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds
Browse files

nfsd: fix nfsd_vfs_read() splice actor setup



When nfsd was transitioned to use splice instead of sendfile() for data
transfers, a line setting the page index was lost. Restore it, so that
nfsd is functional when that path is used.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4fd88517
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -879,6 +879,7 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
			.u.data		= rqstp,
			.u.data		= rqstp,
		};
		};


		rqstp->rq_resused = 1;
		host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor);
		host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor);
	} else {
	} else {
		oldfs = get_fs();
		oldfs = get_fs();