Re: nvme: hung task in blk_mq_freeze_queue_wait

From: Francesco Ruggeri
Date: Tue Nov 08 2022 - 12:30:40 EST


On Tue, Nov 8, 2022 at 8:51 AM Keith Busch <kbusch@xxxxxxxxxx> wrote:
> That is an old kernel, I think it'd be worth trying something newer to
> confirm if this observation isn't already fixed. Specifically, it looks
> like you have multiple namespaces timing out IO near simultaneously, and
> causing a mismatched handling. That kind of thing was fixed after the
> follow (plus some prior dependencies):
>
> commit d6135c3a1ec0cddda7b8b8e1b5b4abeeafd98289
> Author: Keith Busch <kbusch@xxxxxxxxxx>
> Date: Tue May 14 14:46:09 2019 -0600
>
> nvme-pci: Sync queues on reset


On Tue, Nov 8, 2022 at 3:29 AM Hillf Danton <hdanton@xxxxxxxx> wrote:
>
> Given blk_mq_freeze_queue_wait() in the call trace, another explanation
> may be percpu refcount [1], which can be tested with the diff attached.
>
> Only for thoughts.
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/block/blk-mq.c?h=next-20221104#n228
>
> Hillf

Thanks Keith, Hillf, I will look into that.

Francesco