NFSv4.1 mark layout when already returned
authorAndy Adamson <andros@netapp.com>
Wed, 20 Jun 2012 19:03:33 +0000 (15:03 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 16 Jul 2012 18:37:25 +0000 (14:37 -0400)
commit366d50521c57939e61e25dc27f009367447563e6
treed69e02a6fad26e4d746710a7b8dd2caa0047efed
parentbaf6c2a44af02cf6f7cec1ff177189c78fc30f9a
NFSv4.1 mark layout when already returned

When the file layout driver is fencing a DS, _pnfs_return_layout can be
called mulitple times per inode due to in-flight i/o referencing lsegs on it's
plh_segs list.

Remember that LAYOUTRETURN has been called, and do not call it again.
Allow LAYOUTRETURNs after a subsequent LAYOUTGET.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c
fs/nfs/pnfs.h