OSDN Git Service

NFS4.1: make pnfs_ld_[read|write]_done consistent
authorFred Isaman <iisaman@netapp.com>
Fri, 20 Apr 2012 18:47:37 +0000 (14:47 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 27 Apr 2012 18:10:36 +0000 (14:10 -0400)
commit1acbbb4e16209e85c35ff6cacad61d802c07289b
tree37abc770218a11120fe4f10d5842835d270ce209
parenta20c6bec0b8ae775e2e8f350819cef98eea9a832
NFS4.1: make pnfs_ld_[read|write]_done consistent

The two functions had diverged quite a bit, with the write function
being a bit more robust than the read.

However, these still break badly in the desc->pg_bsize < PAGE_CACHE_SIZE case,
as then there is nothing hanging on the data->pages list, and the resend
ends up doing nothing.  This will be fixed in a patch later in the series.

Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c