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

Commit 59948db3 authored by Fred Isaman's avatar Fred Isaman Committed by Trond Myklebust
Browse files

NFS: fix pnfs regression with directio reads



Commit 1abb5088 "NFS: Create an read_pageio_init() function"
did not modify the call in direct.c, preventing direct io from
using pnfs.  This reintroduces that capability.

Signed-off-by: default avatarFred Isaman <iisaman@netapp.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent cac5d07e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -393,7 +393,7 @@ static ssize_t nfs_direct_read_schedule_iovec(struct nfs_direct_req *dreq,
	size_t requested_bytes = 0;
	size_t requested_bytes = 0;
	unsigned long seg;
	unsigned long seg;


	nfs_pageio_init_read(&desc, dreq->inode,
	NFS_PROTO(dreq->inode)->read_pageio_init(&desc, dreq->inode,
			     &nfs_direct_read_completion_ops);
			     &nfs_direct_read_completion_ops);
	get_dreq(dreq);
	get_dreq(dreq);
	desc.pg_dreq = dreq;
	desc.pg_dreq = dreq;