Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3910580rwb; Tue, 8 Nov 2022 09:41:44 -0800 (PST) X-Google-Smtp-Source: AMsMyM6Y75+iUQ30IPPDI7ly2gFi0Q+AR2uzycK/uNWTv0uB0HALPUroj4AN7o4/CuDMPvgYMdG2 X-Received: by 2002:a05:6402:28b5:b0:461:c6e9:8cc with SMTP id eg53-20020a05640228b500b00461c6e908ccmr57549470edb.170.1667929304545; Tue, 08 Nov 2022 09:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667929304; cv=none; d=google.com; s=arc-20160816; b=A2jIFkrEDYCqPSsnBDfAjMrR/HSjlZ4TdnpAsSpETnEqjbYssALR2+XWQrqIzS6B75 29hXYlRhXlROqOCeYI4iKOYkSmcB8PIIXLbKBmfB081iKr0472fZ9HPA5hUZD5Lw1kZG ucBZlJaw2gq7bt6JryIQmQGFBZ95IB5BjVd7eGVMbLyCIVdlFOZUi+QkQQkryJdEeIXQ 0R3dkU6HtM1E2cCTu7TB8GgJjOvqZq/r7fVik+wcTMxm8/291eQuIkK8LSRcZpsSrdEY Qjk3QSV3FF7WXr8BwlxqkIDYC/s9ZuIiLL+u+IdlBpW2B67+kjsChYY0tOEdD44YEwLd Kr1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bWo0wICwvqJmPXPuoTpa5Ov9X6wNIXJjhaYFsJ+BGYo=; b=Qz6urI7PSk8CrRTHjOgxx7XpEeSe/AFSb1RUuRl2RnkXNfiLkYRil5SLybziYcXkoQ 5AosJNk5GZYfn/783J47kmQaarkKCSQ38KX7MprKYqpw4WzynqoueHubAobkp0yXzpUa ZIHl0ccNjGJ4MXUPhZap+Q/g5omq9bTp9GBLmJ/gyzgrXchdVhDPczoRW+RYR5JJsvfw /l8ogp/I7bj2xIfiGYuw7BPgCSOU5nxrGyBD0r/KGX8LkTZJlPWf+H6/wIIXEcafZOzH aVkUu3UsiTcggS7+mJz1UCUFjXQOPUEymDlV+iwqqmU+fZPm8mx6B93bTgSmLPBE9rvP rvKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=inpZwFES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa28-20020a1709076d1c00b007ae75edfa25si4704206ejc.63.2022.11.08.09.41.21; Tue, 08 Nov 2022 09:41:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=inpZwFES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234405AbiKHRai (ORCPT + 91 others); Tue, 8 Nov 2022 12:30:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232035AbiKHRah (ORCPT ); Tue, 8 Nov 2022 12:30:37 -0500 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA6C6110C for ; Tue, 8 Nov 2022 09:30:35 -0800 (PST) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-13c569e5ff5so17006098fac.6 for ; Tue, 08 Nov 2022 09:30:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bWo0wICwvqJmPXPuoTpa5Ov9X6wNIXJjhaYFsJ+BGYo=; b=inpZwFESW1ZamihaSqdrc9ChUddB6Fjv4GA30UUriCnKoWNZPua4c19i62HP0o9S2a qEWl1Tp7GsrnEFR1/5QI1MAS9CF6nX/bGHjx3Lk5QfR6EB6Q4YqdByIEx0PYn5SGa4F6 qc1DldWyqPJs1pzLWEnAx3R6itk4Fxamd6ErGvU5koAuSn+3HgoI6MX7oPMDX7/w74tm UT6a8EYtym0NbjYnsulw9YHXuHNzcvyt9X9t4SPqvrzBwcXYI7p1KW53k1KjJJlm9K5j I8ZT1Pfs6P/hMgzIbRnAaI/9h9kNfTxXobMUivlUo2RcAV2ZL9egrsTRPtfB8LZiyNke cETg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bWo0wICwvqJmPXPuoTpa5Ov9X6wNIXJjhaYFsJ+BGYo=; b=u08x94juqamWiQN6r251gh7h/dZk/zzsbkBMvylRS6hmTfMLHTyQnga6E5wcut8wli szCqsTK0tfOjUOkmZ6S5C5ss4EOpw3mZf4WKdsBFvq1/JMDVlpPENaewHEI3ueUrY2bZ QrJNp1Ouwgd1ddaIHM2F6YrpsdLggXDCRlu3Ny66P0rcHYWRlvAtxsThcWhwfnJTlgZ1 F1biYbCMcJf7O1Ry1uA1tqww1P8IGPmp2JwdT2K4zr4LAHJXMDRI3wT1l717VJ6R97zl iPG2g9IrYV04A6Zz3MrNienZL0xUiPF/8+obWCK+9heeR6EqyEUPwZ/T13GufZkg8EEL TqeQ== X-Gm-Message-State: ACrzQf0p8MWWYgsF5VrGYJvK4GWhpZDHXPejGfC+LUMp6/No7T4edxRN ZKYf4/WJZ+D3e1nMinJNE5OXUZGiUuOo6Z7GF8WAzBOZfbdb2w== X-Received: by 2002:a05:6870:3516:b0:13b:8bc3:1140 with SMTP id k22-20020a056870351600b0013b8bc31140mr42724335oah.293.1667928635061; Tue, 08 Nov 2022 09:30:35 -0800 (PST) MIME-Version: 1.0 References: <20221108025602.E48005EC04F9@us226.sjc.aristanetworks.com> In-Reply-To: From: Francesco Ruggeri Date: Tue, 8 Nov 2022 09:30:23 -0800 Message-ID: Subject: Re: nvme: hung task in blk_mq_freeze_queue_wait To: Keith Busch Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, sagi@grimberg.me, hch@lst.de, axboe@fb.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 8, 2022 at 8:51 AM Keith Busch 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 > 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 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