]> git.baikalelectronics.ru Git - kernel.git/commit
ublk_drv: check ubq_daemon_is_dying() in __ublk_rq_task_work()
authorZiyangZhang <ZiyangZhang@linux.alibaba.com>
Mon, 15 Aug 2022 02:36:31 +0000 (10:36 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Aug 2022 12:16:19 +0000 (06:16 -0600)
commitfb32fcb0f3e750c2732c48c3d1c6e174a9602199
treec003a6e27dc6024dd13e3bbf7ca8e197faeefe1e
parentbf94f406b86db005c9189acd3a72fae147bc89fb
ublk_drv: check ubq_daemon_is_dying() in __ublk_rq_task_work()

Replace direct check on PF_EXITING in __ublk_rq_task_work() by the
existing wrapper. Also inline ubq_daemon_is_dying().

Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: ZiyangZhang <ZiyangZhang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220815023633.259825-2-ZiyangZhang@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c