On 14/10/2024 01:51, Ming Lei wrote:
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.
Reported-and-tested-by: Rick Koch<mr.rickkoch@xxxxxxxxx>
Closes:https://urldefense.com/v3/__https://lore.kernel.org/linux-block/
CANa58eeNDozLaBHKPLxSAhEy__FPfJT_F71W=sEQw49UCrC9PQ@mail.gmail.com__;!!
ACWV5N9M2RV99hQ!
I8rs4BE3PAgb5C75MUXZygt6Rmrgq1Nf9gHkileqLC5dagKa9zQ7aaFcJDNZkQwwCAKyu0RXanbmTtnTcwOR$
Fixes: 7b815817aa58 ("blk-mq: add helper for checking if one CPU is mapped to specified hctx")
Signed-off-by: Ming Lei<ming.lei@xxxxxxxxxx>
---
Reviewed-by: John Garry <john.g.garry@xxxxxxxxxx>