diff options
| author | Yu Kuai <yukuai@fnnas.com> | 2026-02-02 16:05:17 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-02-02 07:05:19 -0700 |
| commit | 41afaeeda5099d9cd07eaa7dc6c3d20c6f1dd9e9 (patch) | |
| tree | 701c022d8b25a556e47778c11e1de0effed3605d /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | 2751b90051a0211ed7c78f26eb2a9b7038804b9b (diff) | |
blk-wbt: fix possible deadlock to nest pcpu_alloc_mutex under q_usage_counter
If wbt is disabled by default and user configures wbt by sysfs, queue
will be frozen first and then pcpu_alloc_mutex will be held in
blk_stat_alloc_callback().
Fix this problem by allocating memory first before queue frozen.
Signed-off-by: Yu Kuai <yukuai@fnnas.com>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
