diff options
author | Ming Lei <[email protected]> | 2022-06-16 09:43:59 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-06-16 14:45:15 -0600 |
commit | 5fd7a84a09e640016fe106dd3e992f5210e23dc7 (patch) | |
tree | 9a9e375e7ad18f3d650f37756f701b486b3a436b /scripts/gdb/linux/clk.py | |
parent | 14dc7a18abbe4176f5626c13c333670da8e06aa1 (diff) |
blk-mq: protect q->elevator by ->sysfs_lock in blk_mq_elv_switch_none
elevator can be tore down by sysfs switch interface or disk release, so
hold ->sysfs_lock before referring to q->elevator, then potential
use-after-free can be avoided.
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/clk.py')
0 files changed, 0 insertions, 0 deletions