From: Jens Axboe Date: Fri, 13 Jul 2007 20:42:20 +0000 (+0200) Subject: nfsd: fix nfsd_vfs_read() splice actor setup X-Git-Tag: v2.6.23-rc1~1074 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fbef206daead133085fe33905f5e842d38fb8da;p=platform%2Fkernel%2Flinux-3.10.git 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: Jens Axboe Signed-off-by: Linus Torvalds --- diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 8604e35..945b1ce 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -879,6 +879,7 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, .u.data = rqstp, }; + rqstp->rq_resused = 1; host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor); } else { oldfs = get_fs();