mbox series

[0/2] Don't do pNFS I/O when not holding a layout

Message ID 20200805202431.627013-1-trondmy@kernel.org (mailing list archive)
Headers show
Series Don't do pNFS I/O when not holding a layout | expand

Message

Trond Myklebust Aug. 5, 2020, 8:24 p.m. UTC
From: Trond Myklebust <trond.myklebust@hammerspace.com>

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(-)