diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-02-27 15:37:36 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-03-01 16:20:16 -0500 |
commit | a79f194aa4879e9baad118c3f8bb2ca24dbef765 (patch) | |
tree | 202028379bf0ff4ac68952614d76ab434cf9da50 /include/linux/sunrpc | |
parent | 39a5201a2b450c2bf0447fb65305654c65f7f954 (diff) | |
download | linux-a79f194aa4879e9baad118c3f8bb2ca24dbef765.tar.gz linux-a79f194aa4879e9baad118c3f8bb2ca24dbef765.tar.bz2 linux-a79f194aa4879e9baad118c3f8bb2ca24dbef765.zip |
NFSv4/flexfiles: Abort I/O early if the layout segment was invalidated
If a layout segment gets invalidated while a pNFS I/O operation
is queued for transmission, then we ideally want to abort
immediately. This is particularly the case when there is a large
number of I/O related RPCs queued in the RPC layer, and the layout
segment gets invalidated due to an ENOSPC error, or an EACCES (because
the client was fenced). We may end up forced to spam the MDS with a
lot of otherwise unnecessary LAYOUTERRORs after that I/O fails.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 219aa3910a0c..52d41d0c1ae1 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h @@ -97,6 +97,7 @@ typedef void (*rpc_action)(struct rpc_task *); struct rpc_call_ops { void (*rpc_call_prepare)(struct rpc_task *, void *); + void (*rpc_call_prepare_transmit)(struct rpc_task *, void *); void (*rpc_call_done)(struct rpc_task *, void *); void (*rpc_count_stats)(struct rpc_task *, void *); void (*rpc_release)(void *); |