diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2023-12-12 18:13:22 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2024-02-28 23:00:14 +0300 |
commit | 3f7edeac0bbb301a07d7ea2abd28727aaa7fdab0 (patch) | |
tree | 7febf2a73ff28a5e3a9c0189e0063e9e2e26d4f7 /include/linux/sunrpc/xprt.h | |
parent | 0c14584cdbdb58ecc14d149a81ca6c3d42cd38ec (diff) | |
download | linux-3f7edeac0bbb301a07d7ea2abd28727aaa7fdab0.tar.xz |
SUNRPC: Add a transport callback to handle dequeuing of an RPC request
Add a transport level callback to allow it to handle the consequences of
dequeuing the request that was in the process of being transmitted.
For something like a TCP connection, we may need to disconnect if the
request was partially transmitted.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux/sunrpc/xprt.h')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 464f6a9492ab..81b952649d35 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h @@ -152,6 +152,7 @@ struct rpc_xprt_ops { int (*prepare_request)(struct rpc_rqst *req, struct xdr_buf *buf); int (*send_request)(struct rpc_rqst *req); + void (*abort_send_request)(struct rpc_rqst *req); void (*wait_for_reply_request)(struct rpc_task *task); void (*timer)(struct rpc_xprt *xprt, struct rpc_task *task); void (*release_request)(struct rpc_task *task); |