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)
commit5085607d209102b37b169bc94d0aa39566a9842a
tree3aaf61d3eaca82858cfa12f8698c7a27942a0dcd
parent6f9449be53f3ce383caed797708b332ede8d952c
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: fd9a8d7160937 ("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