summaryrefslogtreecommitdiffstats
path: root/io_uring/opdef.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-09-21 13:17:53 +0200
committerJens Axboe <axboe@kernel.dk>2022-09-21 21:15:02 +0200
commitc4c0009e0b56ef9920020bcade1e45be52653bae (patch)
tree13bf9d158b354a7659a77ac97a1ae61b50d52080 /io_uring/opdef.c
parentio_uring/net: rename io_sendzc() (diff)
downloadlinux-c4c0009e0b56ef9920020bcade1e45be52653bae.tar.xz
linux-c4c0009e0b56ef9920020bcade1e45be52653bae.zip
io_uring/net: combine fail handlers
Merge io_send_zc_fail() into io_sendrecv_fail(), saves a few lines of code and some headache for following patch. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/e0eba1d577413aef5602cd45f588b9230207082d.1663668091.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.c')
-rw-r--r--io_uring/opdef.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/opdef.c b/io_uring/opdef.c
index c7d0a2fed42e..0fdeb1bc21de 100644
--- a/io_uring/opdef.c
+++ b/io_uring/opdef.c
@@ -500,7 +500,7 @@ const struct io_op_def io_op_defs[] = {
.issue = io_send_zc,
.prep_async = io_send_prep_async,
.cleanup = io_send_zc_cleanup,
- .fail = io_send_zc_fail,
+ .fail = io_sendrecv_fail,
#else
.prep = io_eopnotsupp_prep,
#endif