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

2020-10-09 Thread Jens Axboe
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

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

2020-10-09 Thread Ming Lei
On Fri, Oct 09, 2020 at 01:00:14AM -0700, 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. > > Fixes: 1b97871b501f ("blk-mq: move cancel of hctx->run_work

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

2020-10-09 Thread Yang Yang
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. Fixes: 1b97871b501f ("blk-mq: move cancel of hctx->run_work into blk_mq_hw_sysfs_release") Signed-off-by: Yang Yang ---