summaryrefslogtreecommitdiffstats
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorDylan Yudaken <dylany@fb.com>2022-04-21 02:13:41 -0700
committerJens Axboe <axboe@kernel.dk>2022-04-24 18:18:18 -0600
commit08dcd0288f6ecb97bc94260856e6b44cca4149e2 (patch)
treee07d5cd54d18168e03ef6fc5c567a8be818142c3 /fs/io_uring.c
parent47894438e916ca3fe44db33c2d4a1670fd296d6f (diff)
downloadlinux-stable-08dcd0288f6ecb97bc94260856e6b44cca4149e2.tar.gz
linux-stable-08dcd0288f6ecb97bc94260856e6b44cca4149e2.tar.bz2
linux-stable-08dcd0288f6ecb97bc94260856e6b44cca4149e2.zip
io_uring: trace cqe overflows
Trace cqe overflows in io_uring. Print ocqe before the check, so if it is NULL it indicates that it has been dropped. Signed-off-by: Dylan Yudaken <dylany@fb.com> Link: https://lore.kernel.org/r/20220421091345.2115755-3-dylany@fb.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r--fs/io_uring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 97ed7f419dae..e92b1b9d4b5f 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -2107,6 +2107,7 @@ static bool io_cqring_event_overflow(struct io_ring_ctx *ctx, u64 user_data,
struct io_overflow_cqe *ocqe;
ocqe = kmalloc(sizeof(*ocqe), GFP_ATOMIC | __GFP_ACCOUNT);
+ trace_io_uring_cqe_overflow(ctx, user_data, res, cflags, ocqe);
if (!ocqe) {
/*
* If we're in ring overflow flush mode, or in task cancel mode,