From: Trond Myklebust <trond.myklebust@xxxxxxxxxxxxxxx> We recently discovered a couple of issues in the pNFS client that can cause it to return a layout while some of the layout segments being returned are still in use for I/O. The following 2 patches will add appropriate tests to ensure this cannot happen, and that the layoutreturn call is delayed until the outstanding I/O is finished. Trond Myklebust (2): NFS: Don't move layouts to plh_return_segs list while in use NFS: Don't return layout segments that are in use fs/nfs/pnfs.c | 46 ++++++++++++++++------------------------------ 1 file changed, 16 insertions(+), 30 deletions(-) -- 2.26.2