]> git.baikalelectronics.ru Git - kernel.git/commit
NFS/pnfs: Bulk destroy of layouts needs to be safe w.r.t. umount
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 22 Feb 2019 19:20:27 +0000 (14:20 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 23 Feb 2019 18:59:29 +0000 (13:59 -0500)
commitdc99c545f4e2ddfed4c4f59975cb4ce8dfea534d
tree3aaf61d3eaca82858cfa12f8698c7a27942a0dcd
parent58cd8a2374d9cdc5cc60f28937980a3f4dcf9528
NFS/pnfs: Bulk destroy of layouts needs to be safe w.r.t. umount

If a bulk layout recall or a metadata server reboot coincides with a
umount, then holding a reference to an inode is unsafe unless we
also hold a reference to the super block.

Fixes: ae05458216e26 ("NFSv4.1: Fix bulk recall and destroy of layouts")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c
fs/nfs/pnfs.h