io_uring/rsrc: add lockdep sanity checks
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 4 Apr 2023 12:39:55 +0000 (13:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Apr 2023 15:30:39 +0000 (09:30 -0600)
commit1f2c8f610aa6c6a3dc3523f93eaf28c25051df6f
treef75b8a937ad5d567951ac042bc1b5b327c6859b7
parent9eae8655f9cd2eeed99fb7a0d2bb22816c17e497
io_uring/rsrc: add lockdep sanity checks

We should hold ->uring_lock while putting nodes with io_put_rsrc_node(),
add a lockdep check for that.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/b50d5f156ac41450029796738c1dfd22a521df7a.1680576071.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/rsrc.c
io_uring/rsrc.h