]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS: pnfs_roc_drain() fix a race with open
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 9 Jul 2015 21:54:09 +0000 (23:54 +0200)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 11 Jul 2015 14:16:17 +0000 (16:16 +0200)
commit95edf40da1f7d9664df7c2e893f3638043a15d02
treeed2347c0ea6a3a0e68854c56a712d9f6a52a2215
parentaae904207aaf661379c67fb5eebf207694b80519
pNFS: pnfs_roc_drain() fix a race with open

If a process reopens the file before we can send off the CLOSE/DELEGRETURN,
then pnfs_roc_drain() may end up waiting for a new set of layout segments
that are marked as return-on-close, but haven't yet been returned.

Fix this by only waiting for those layout segments that were invalidated in
pnfs_roc().

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c