diff options
| author | Ming Lei <[email protected]> | 2024-10-14 00:51:15 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-10-14 14:17:07 +0000 |
| commit | c25c0c9035bb8b28c844dfddeda7b8bdbcfcae95 (patch) | |
| tree | 148ec7f7f2f6745899f9d679a335d481ac77d073 /rust/helpers/slab.c | |
| parent | elevator: Remove argument from elevator_find_get (diff) | |
| download | kernel-c25c0c9035bb8b28c844dfddeda7b8bdbcfcae95.tar.gz kernel-c25c0c9035bb8b28c844dfddeda7b8bdbcfcae95.zip | |
blk-mq: setup queue ->tag_set before initializing hctx
Commit 7b815817aa58 ("blk-mq: add helper for checking if one CPU is mapped to specified hctx")
needs to check queue mapping via tag set in hctx's cpuhp handler.
However, q->tag_set may not be setup yet when the cpuhp handler is
enabled, then kernel oops is triggered.
Fix the issue by setup queue tag_set before initializing hctx.
Cc: [email protected]
Reported-and-tested-by: Rick Koch <[email protected]>
Closes: https://lore.kernel.org/linux-block/CANa58eeNDozLaBHKPLxSAhEy__FPfJT_F71W=sEQw49UCrC9PQ@mail.gmail.com
Fixes: 7b815817aa58 ("blk-mq: add helper for checking if one CPU is mapped to specified hctx")
Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: John Garry <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'rust/helpers/slab.c')
0 files changed, 0 insertions, 0 deletions
