Commit c25c0c9
blk-mq: setup queue ->tag_set before initializing hctx
Commit 7b81581 ("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: 7b81581 ("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]>1 parent ee7ff15 commit c25c0c9
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4310 | 4310 | | |
4311 | 4311 | | |
4312 | 4312 | | |
| 4313 | + | |
| 4314 | + | |
| 4315 | + | |
| 4316 | + | |
| 4317 | + | |
| 4318 | + | |
4313 | 4319 | | |
4314 | 4320 | | |
4315 | 4321 | | |
| |||
4328 | 4334 | | |
4329 | 4335 | | |
4330 | 4336 | | |
4331 | | - | |
4332 | | - | |
4333 | 4337 | | |
4334 | 4338 | | |
4335 | 4339 | | |
| |||
0 commit comments