diff options
author | Yu Kuai <yukuai3@huawei.com> | 2025-09-10 16:04:43 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-09-10 05:25:56 -0600 |
commit | b86433721f46d934940528f28d49c1dedb690df1 (patch) | |
tree | 75ad6bcb243438955ceb8031a38321b4f1ca419c /rust/helpers/helpers.c | |
parent | 6293e336f6d7d3f3415346ce34993b3398846166 (diff) |
blk-mq: fix potential deadlock while nr_requests grown
Allocate and free sched_tags while queue is freezed can deadlock[1],
this is a long term problem, hence allocate memory before freezing
queue and free memory after queue is unfreezed.
[1] https://lore.kernel.org/all/0659ea8d-a463-47c8-9180-43c719e106eb@linux.ibm.com/
Fixes: e3a2b3f931f5 ("blk-mq: allow changing of queue depth through sysfs")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions