From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD08DC433EF for ; Wed, 1 Jun 2022 17:08:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356249AbiFARI4 (ORCPT ); Wed, 1 Jun 2022 13:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244187AbiFARIx (ORCPT ); Wed, 1 Jun 2022 13:08:53 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D86A5D648 for ; Wed, 1 Jun 2022 10:08:52 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 46DDE68AA6; Wed, 1 Jun 2022 19:08:48 +0200 (CEST) Date: Wed, 1 Jun 2022 19:08:47 +0200 From: Christoph Hellwig To: "Michael Kelley (LINUX)" Cc: Christoph Hellwig , "kbusch@kernel.org" , "axboe@fb.com" , "sagi@grimberg.me" , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Caroline Subramoney , Richard Wurdack , Nathan Obr Subject: Re: [PATCH 2/2] nvme-pci: handle persistent internal error AER from NVMe controller Message-ID: <20220601170847.GA27165@lst.de> References: <1654056747-40143-1-git-send-email-mikelley@microsoft.com> <1654056747-40143-2-git-send-email-mikelley@microsoft.com> <20220601073505.GA24875@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 01, 2022 at 03:56:59PM +0000, Michael Kelley (LINUX) wrote: > If there is a persistent error that does a controller reset, it looks > like we should *not* queue async_event_work at the end of > nvme_complete_async_event(). The controller reset will > submit an AER on the admin queue, and so presumably > we don't want nvme_async_event_work() to also try to submit > another AER, which may or may not succeed depending on the > timing of when the controller state shows LIVE again. > Agreed? Yes, that makes sense. I guess we can just check the return value from nvme_reset_ctrl and propagate this to nvme_async_event_work and skip the rearming for that case.