NFS/pnfs: Ensure that _pnfs_return_layout() waits for layoutreturn completion
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 19 Apr 2020 18:38:00 +0000 (14:38 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 19 Apr 2020 23:27:26 +0000 (19:27 -0400)
commit7bcc10585bd9b762820fd8ffdc389aafa56ad689
treeba75d1c335de6bd3d5014c4b2daee34e19651244
parentae83d0b416db002fe95601e7f97f64b59514d936
NFS/pnfs: Ensure that _pnfs_return_layout() waits for layoutreturn completion

We require that any outstanding layout return completes before we can
free up the inode so that the layout itself can be freed.

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