]> git.karo-electronics.de Git - mv-sheeva.git/commit
pnfs: layout roc code
authorFred Isaman <iisaman@netapp.com>
Thu, 6 Jan 2011 11:36:32 +0000 (11:36 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 6 Jan 2011 19:46:32 +0000 (14:46 -0500)
commitf7e8917a67980924651a9e244510e63ef05c7755
treefb00db5ef8b3b26793fae7a1186f1cd16205ab9d
parent36840370845629e6cb4324d1dd4aff6778670503
pnfs: layout roc code

A layout can request return-on-close.  How this interacts with the
forgetful model of never sending LAYOUTRETURNS is a bit ambiguous.
We forget any layouts marked roc, and wait for them to be completely
forgotten before continuing with the close.  In addition, to compensate
for races with any inflight LAYOUTGETs, and the fact that we do not get
any layout stateid back from the server, we set the barrier to the worst
case scenario of current_seqid + number of outstanding LAYOUTGETS.

Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/client.c
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h
include/linux/nfs_fs_sb.h