aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2022-06-14 09:48:24 +0200
committerJens Axboe <[email protected]>2022-06-17 07:31:05 -0600
commit50e34d78815e474d410f342fbe783b18192ca518 (patch)
treec71b4e1bf63b621b1dba9a1e5b740b31f41d0552 /scripts/bpf_doc.py
parentb96f3cab59654ee2c30e6adf0b1c13cf8c0850fa (diff)
block: disable the elevator int del_gendisk
The elevator is only used for file system requests, which are stopped in del_gendisk. Move disabling the elevator and freeing the scheduler tags to the end of del_gendisk instead of doing that work in disk_release and blk_cleanup_queue to avoid a use after free on q->tag_set from disk_release as the tag_set might not be alive at that point. Move the blk_qos_exit call as well, as it just depends on the elevator exit and would be the only reason to keep the not exactly cheap queue freeze in disk_release. Fixes: e155b0c238b2 ("blk-mq: Use shared tags for shared sbitmap support") Reported-by: [email protected] Signed-off-by: Christoph Hellwig <[email protected]> Tested-by: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions