io_uring: refactor provide/remove buffer locking
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Feb 2021 22:35:13 +0000 (22:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 11 Apr 2021 23:41:58 +0000 (17:41 -0600)
commit9fb8cb49c7b634982ac2a4302b5158d7120f0186
tree5893442c7d2243266bbfad02b46ca637d39ac954
parentf41db2732d4835799af64159c61e522063786e5c
io_uring: refactor provide/remove buffer locking

Always complete request holding the mutex instead of doing that strange
dancing with conditional ordering.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c