Commit 2839ab71 authored by Jann Horn's avatar Jann Horn Committed by Jens Axboe
Browse files

io_uring/rsrc: Move lockdep assert from io_free_rsrc_node() to caller



Checking for lockdep_assert_held(&ctx->uring_lock) in io_free_rsrc_node()
means that the assertion is only checked when the resource drops to zero
references.
Move the lockdep assertion up into the caller io_put_rsrc_node() so that it
instead happens on every reference count decrement.

Signed-off-by: default avatarJann Horn <jannh@google.com>
Link: https://lore.kernel.org/r/20250120-uring-lockdep-assert-earlier-v1-1-68d8e071a4bb@google.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent b73de0da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment