io_uring: remove useless is_dying check on quiesce
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:43:48 +0000 (15:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 4 Apr 2021 21:28:41 +0000 (15:28 -0600)
commit212a4ab82a9d4912ec11b706c9b5ed731b96d99d
treefa8ad7cd9f25df305d760cc53772b3460b7af630
parent26e06730b6ae48d2eb8966b1167b439435478295
io_uring: remove useless is_dying check on quiesce

rsrc_data refs should always be valid for potential submitters,
io_rsrc_ref_quiesce() restores it before unlocking, so
percpu_ref_is_dying() check in io_sqe_files_unregister() does nothing
and misleading. Concurrent quiesce is prevented with
struct io_rsrc_data::quiesce.

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