NFSv4: Add support for CB_RECALL_ANY for flexfiles layouts
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 18 Feb 2020 20:58:31 +0000 (15:58 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 16 Mar 2020 12:34:30 +0000 (08:34 -0400)
commitb5fdf8418c370d69e8b2d3588e0cf2a375ab26c1
treef6cd1d201771957bb6cd33f1dca2c148eb0adad7
parent7f156ef0bf45b61385711c5fabf5c4f155a0bb29
NFSv4: Add support for CB_RECALL_ANY for flexfiles layouts

When we receive a CB_RECALL_ANY that asks us to return flexfiles
layouts, we iterate through all the layouts and look at whether or
not there are active open file descriptors that might need them
for I/O. If there are no such descriptors, we return the layouts.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/callback.h
fs/nfs/callback_proc.c
fs/nfs/nfs4_fs.h
fs/nfs/nfs4state.c
fs/nfs/nfs4trace.h
fs/nfs/pnfs.c
fs/nfs/pnfs.h