io_uring: check non-sync defer_list carefully
commit4ee3631451c9a62e6b6bc7ee51fb9a5b34e33509
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 1 May 2020 14:09:37 +0000 (1 17:09 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 May 2020 14:50:30 +0000 (1 08:50 -0600)
tree240096f00b0440988e2e5a83802d9b98f9497986
parent7759a0bfadceef3910d0e50f86d63b6ed58b4e70
io_uring: check non-sync defer_list carefully

io_req_defer() do double-checked locking. Use proper helpers for that,
i.e. list_empty_careful().

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