]> 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)
commit9f9cef9409ba629bd3333bb82b4fb3c1cef96ad0
tree3aaf61d3eaca82858cfa12f8698c7a27942a0dcd
parent7bc53a1666724743e8c5d147a284c9b6df1d9446
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: 7db4f5e4b0688 ("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