]> git.karo-electronics.de Git - mv-sheeva.git/commit
pnfs: change how lsegs are removed from layout list
authorFred Isaman <iisaman@netapp.com>
Thu, 6 Jan 2011 11:36:23 +0000 (11:36 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 6 Jan 2011 19:46:31 +0000 (14:46 -0500)
commit4541d16c024ce40a0781e03c185ecdfe34aec46f
tree53574211b3de874869b09644b8de872ccf2d4fe1
parentfd6002e9b8a93220d5f53b93d9624caf73cdc8a2
pnfs: change how lsegs are removed from layout list

This is to prepare the way for sensible io draining.  Instead of just
removing the lseg from the list, we instead clear the VALID flag
(preventing new io from grabbing references to the lseg) and remove
the reference holding it in the list.  Thus the lseg will be removed
once any io in progress completes and any references still held are
dropped.

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