io_uring: cleanup conditional submit locking
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 25 Mar 2022 11:52:14 +0000 (11:52 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 24 Apr 2022 23:34:19 +0000 (17:34 -0600)
commitf8929630514505ef8c6cf70d8b7a2bbf7e43b225
tree29837f0cbdd464cd35c8e1f49c10d7f629239d7f
parentd487b43cd3276e40723641510cbd2d33da4f6800
io_uring: cleanup conditional submit locking

Refactor io_ring_submit_[un]lock(), make it accept issue_flags and
remove manual IO_URING_F_UNLOCKED checks. It also allows us to place
lockdep annotations inside instead of sprinkling them in a bunch of
places. There is only one user that doesn't fit now, so hand code
locking in __io_rsrc_put_work().

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