Skip to content

pNFS/flexfiles: Cancel I/O if the layout is revoked

[email protected] linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4SUNRPC: Fix races with rpc_killall_tasks()include/linux/sunrpc/sched.h net/sunrpc/clnt.c net/sunrpc/sched.c +1 more+29 -210 replies
2/4SUNRPC: Add a helper to allow pNFS drivers to selectively cancel RPC callsinclude/linux/sunrpc/sched.h net/sunrpc/clnt.c net/sunrpc/sched.c+53 -00 replies
3/4SUNRPC: Add API to force the client to disconnectinclude/linux/sunrpc/clnt.h net/sunrpc/clnt.c+15 -00 replies
4/4NFSv4/flexfiles: Cancel I/O if the layout is recalled or revokedfs/nfs/flexfilelayout/flexfilelayout.c fs/nfs/pnfs.c fs/nfs/pnfs.h+97 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] pNFS/flexfiles: Cancel I/O if the layout is revoked

From: Trond Myklebust <[email protected]>

The pNFS/flexfiles driver is capable of having a lot of outstanding I/O in the RPC layer when it flushes out the writeback data. If the server decides to recall or revoke the layout when this happens, then it takes a while for that I/O to complete.
To speed things up, add an API to allow the flexfiles driver to cancel that I/O and hence return the layout earlier.

Trond Myklebust (4):
SUNRPC: Fix races with rpc_killall_tasks()
SUNRPC: Add a helper to allow pNFS drivers to selectively cancel RPC
calls
SUNRPC: Add API to force the client to disconnect NFSv4/flexfiles: Cancel I/O if the layout is recalled or revoked

 fs/nfs/flexfilelayout/flexfilelayout.c | 84 +++++++++++++++++++++++++-
 fs/nfs/pnfs.c                          |  9 ++-
 fs/nfs/pnfs.h                          |  9 +++
 include/linux/sunrpc/clnt.h            |  1 +
 include/linux/sunrpc/sched.h           |  6 ++
 net/sunrpc/clnt.c                      | 57 +++++++++++++++--
 net/sunrpc/sched.c                     | 51 +++++++++++-----
 net/sunrpc/xprtsock.c                  |  3 +-
 8 files changed, 194 insertions(+), 26 deletions(-)
Signature · 1 line
2.37.3