diff options
| author | zhengbin <[email protected]> | 2019-08-12 12:36:55 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2019-08-12 14:14:11 +0000 |
| commit | e26cc08265dda37d2acc8394604f220ef412299d (patch) | |
| tree | 502e5600f432e2a4def57d560a73788b53a14d54 /tools/perf/scripts/python/syscall-counts.py | |
| parent | Merge branch 'nvme-5.3-rc' of git://git.infradead.org/nvme into for-linus (diff) | |
| download | kernel-e26cc08265dda37d2acc8394604f220ef412299d.tar.gz kernel-e26cc08265dda37d2acc8394604f220ef412299d.zip | |
blk-mq: move cancel of requeue_work to the front of blk_exit_queue
blk_exit_queue will free elevator_data, while blk_mq_requeue_work
will access it. Move cancel of requeue_work to the front of
blk_exit_queue to avoid use-after-free.
blk_exit_queue blk_mq_requeue_work
__elevator_exit blk_mq_run_hw_queues
blk_mq_exit_sched blk_mq_run_hw_queue
dd_exit_queue blk_mq_hctx_has_pending
kfree(elevator_data) blk_mq_sched_has_work
dd_has_work
Fixes: fbc2a15e3433 ("blk-mq: move cancel of requeue_work into blk_mq_release")
Cc: [email protected]
Reviewed-by: Ming Lei <[email protected]>
Signed-off-by: zhengbin <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
