summaryrefslogtreecommitdiff
path: root/io_uring/opdef.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-09-21 14:17:46 +0300
committerJens Axboe <axboe@kernel.dk>2022-09-21 22:15:02 +0300
commita47b255e90395bdb481975ab3d9e96fcf8b3165f (patch)
treed6641cb4ed201bbdc8ef360c0b72ac861f323323 /io_uring/opdef.h
parent3b8fdd1dc35e395d19efbc8391a809a5b954ecf4 (diff)
downloadlinux-a47b255e90395bdb481975ab3d9e96fcf8b3165f.tar.xz
io_uring: add custom opcode hooks on fail
Sometimes we have to do a little bit of a fixup on a request failuer in io_req_complete_failed(). Add a callback in opdef for that. Cc: stable@vger.kernel.org Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/b734cff4e67cb30cca976b9face321023f37549a.1663668091.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.h')
-rw-r--r--io_uring/opdef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/opdef.h b/io_uring/opdef.h
index 763c6e54e2ee..3efe06d25473 100644
--- a/io_uring/opdef.h
+++ b/io_uring/opdef.h
@@ -36,6 +36,7 @@ struct io_op_def {
int (*issue)(struct io_kiocb *, unsigned int);
int (*prep_async)(struct io_kiocb *);
void (*cleanup)(struct io_kiocb *);
+ void (*fail)(struct io_kiocb *);
};
extern const struct io_op_def io_op_defs[];