Re: [PATCH] blk-mq: move cancel of hctx->run_work to the front of blk_exit_queue

From: Jens Axboe
Date: Fri Oct 09 2020 - 14:46:49 EST


On 10/9/20 2:00 AM, Yang Yang wrote:
> blk_exit_queue will free elevator_data, while blk_mq_run_work_fn
> will access it. Move cancel of hctx->run_work to the front of
> blk_exit_queue to avoid use-after-free.

Applied, thanks.

--
Jens Axboe