io_uring: use right helpers for file assign locking
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 18 Apr 2022 19:51:11 +0000 (20:51 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Apr 2022 22:21:26 +0000 (16:21 -0600)
commit73687727298feed553c3ea7ad0f588d7029a2862
treeb02d9bb6d283206a8c3e8313ee56f03014b14faf
parent671f6e9ba22b1f6e2ab0361b958d4c2f529043f6
io_uring: use right helpers for file assign locking

We have io_ring_submit_[un]lock() functions helping us with conditional
->uring_lock locking, use them in io_file_get_fixed() instead of hand
coding.

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