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 91F66FA373D for ; Sun, 30 Oct 2022 09:28:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229799AbiJ3J2P (ORCPT ); Sun, 30 Oct 2022 05:28:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbiJ3J2O (ORCPT ); Sun, 30 Oct 2022 05:28:14 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89F2E248 for ; Sun, 30 Oct 2022 02:28:13 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 6FFEF68AA6; Sun, 30 Oct 2022 10:28:09 +0100 (CET) Date: Sun, 30 Oct 2022 10:28:08 +0100 From: Christoph Hellwig To: Sagi Grimberg Cc: Christoph Hellwig , Jens Axboe , Keith Busch , Chao Leng , Ming Lei , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org Subject: Re: [PATCH 07/17] nvme: remove the NVME_NS_DEAD check in nvme_validate_ns Message-ID: <20221030092808.GD5643@lst.de> References: <20221025144020.260458-1-hch@lst.de> <20221025144020.260458-8-hch@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-block@vger.kernel.org On Wed, Oct 26, 2022 at 03:52:25PM +0300, Sagi Grimberg wrote: > >> We never rescan namespaces after marking them dead, so this check is dead >> now. > > scan_work can still run, I'd keep this one. At this time the controller already has a non-live state, so the command won't make it anywhere and thus except for a tiny race we won't even get to this call. That being said if we flush the scan_work earlier this will all become moot anyway.