Skip to content

Commit 55e6ac1

Browse files
isilenceaxboe
authored andcommitted
io_uring: io_rw_reissue lockdep annotations
We expect io_rw_reissue() to take place only during submission with uring_lock held. Add a lockdep annotation to check that invariant. Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent b1445e5 commit 55e6ac1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/io_uring.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2692,6 +2692,8 @@ static bool io_rw_reissue(struct io_kiocb *req, long res)
26922692
if ((res != -EAGAIN && res != -EOPNOTSUPP) || io_wq_current_is_worker())
26932693
return false;
26942694

2695+
lockdep_assert_held(&req->ctx->uring_lock);
2696+
26952697
ret = io_sq_thread_acquire_mm_files(req->ctx, req);
26962698

26972699
if (io_resubmit_prep(req, ret)) {

0 commit comments

Comments
 (0)