On Fri, 10 Mar 2023 09:09:13 +0800, Ming Lei wrote: > The 'q' parameter of the macro __blk_mq_run_dispatch_ops may not be one > local variable, such as, it is rq->q, then request queue pointed by > this variable could be changed to another queue in case of > BLK_MQ_F_TAG_QUEUE_SHARED after 'dispatch_ops' returns, then > 'bad unlock balance' is triggered. > > Fixes the issue by adding one local variable for doing srcu lock/unlock. > > [...] Applied, thanks! [1/1] blk-mq: fix "bad unlock balance detected" on q->srcu in __blk_mq_run_dispatch_ops commit: 00e885efcfbb8712d3e1bfc1ae30639c15ca1d3b Best regards, -- Jens Axboe