Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4420327ybp; Mon, 7 Oct 2019 08:13:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQ5PV4t4iqtkr9Vm2xZN+ZpRkmfpKJV7pDZyDDNqoU70nWi/PmKRRaNvchRPcNMFfDAxti X-Received: by 2002:a17:906:7d10:: with SMTP id u16mr24526295ejo.194.1570461183438; Mon, 07 Oct 2019 08:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570461183; cv=none; d=google.com; s=arc-20160816; b=choP3OGS2JzsaqKuYLU87WP86BVU1jS9ov2mZgWsCMWTGdsaJ5s8A3SAoNpRvOEZYO P/zA4ASuDVuPjCngEs/gZ2T0FYEmdpZhgWjEqYNM/AZ5M2Qpe1yuCVo7XKqMxKZH1geq pEiA5ZL+g37cxTKuVr2/2ayuy/hNBHq+ysYeSKhK7pvKsKMlk+7fJZBY84u58N9kjssW fsgKFECPTLlWPxeydwJ2wNVFGfcn6DvBUieACPb/Hea3WN7W3t/aMwPFlUWTzcIDCqty vN0eqrSME55ye5RlfqUMaLbdH0WxBPyTHitCB0IppZyKs4IrfkjEB22quNm4mbmTKHVg hlGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=eTNIlZe+EdZVGG81HeluEl5PY/3Uq8GfkNMqYYi6lVs=; b=S4P7K6zptSQexV5IzviXX9+yqySmRRS0VnEH+ksoDWxjsNdjun50wwyqYsvOPZVEOA waLYsPGMjDPquxs0AQFkKxZeIVHxx7bLCE4UmXnFtdj65Dp6RZArHr0NxeFvvfp3qF5C d8d1jHAnMw6YkeNAorzXlAR6h62PDl0FBF3WbH2B5HwByPSJmDlCGlSNz/aLiKfItryt gwfLr2yiOFzQdT8VBIDOWntYaQjDZJFf/Uk+OEccpVF+uwjrx9gBXtFlSXcpuHEowdoP rm0t6QUXGsSNFPUxc0F2VwdeN7HyX8NJBCafEqSaXofeZOEHygajX+8zP/Bq22AJE+8a V2rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ne2oqzo3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m55si9036915edc.17.2019.10.07.08.12.39; Mon, 07 Oct 2019 08:13:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ne2oqzo3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728323AbfJGPMf (ORCPT + 99 others); Mon, 7 Oct 2019 11:12:35 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:36297 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727835AbfJGPMe (ORCPT ); Mon, 7 Oct 2019 11:12:34 -0400 Received: by mail-io1-f68.google.com with SMTP id b136so29352771iof.3 for ; Mon, 07 Oct 2019 08:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eTNIlZe+EdZVGG81HeluEl5PY/3Uq8GfkNMqYYi6lVs=; b=Ne2oqzo3lM0h47eqjURdWmhmFSIBlEB3GBusCr3D8jHo6sLs1I7/m08oy+dzdA9/XS GWAe6rzF0lRZzxQLtZVaclX201QJOmnoXZszZXVvjpbTPD3G8O6olD0JGOx2MmhFMBhG GM9yPR0GbuBRHZCOozmrCcPvc6pCyc94A+VoFDbX1YRuiv031Jq8lktRhx76GQviLcEX IZna8p8GV54/VTQruw81XGihL45w0EaxvZo05/nn1QRRW6LgR9n+fEOMr9NSe4+P+IZl 8XThJi1bYsa3IfwWQOXhaqq9WOMQWuldyVZPlasMst5S3vRSlPQ1i9pb7ZNH4NYW9FyO zZDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eTNIlZe+EdZVGG81HeluEl5PY/3Uq8GfkNMqYYi6lVs=; b=uU30R8nDsOu7jpu6iZWw2lelSF/uZmjz5Z4fSUo3w9p0KdXp/Cv5d4xzyMqzfBfTU2 IqlKCPTUlkn1FPJlsDvmIJfodX6inx5p24fDMBvmjgCNN4huaJNDNj4ARineauXjJTrw IqeE5XqfkD8U0dlsP97pDQi1NiiD3xrugFL8LLI2jLPedHPcOUJ9GHRptTjw8r3NljUI 9/jiGZcRzA7KIrJ0WHzQi56rVq2xvlVsH/s6Aw/epxsHSRkaTymmou3zWAO4k5G/N7Nm jQy2+ECw9WVOLJmpjpFJ7exy6neAS09bO/BBxHyYdbYRzeeUhutueL7ZB9ZXFBiRhWOD HiQQ== X-Gm-Message-State: APjAAAXMPicsgsKkmXd9UBIQquI3S2ej5IYEQMcw5Ddg/P8QAyM+ML5K guYTsDBTKrtpbglhTwepkXABrtP7jHzVbM8VB6cR5A== X-Received: by 2002:a92:ce48:: with SMTP id a8mr28074054ilr.281.1570461153887; Mon, 07 Oct 2019 08:12:33 -0700 (PDT) MIME-Version: 1.0 References: <20191003191354.GA4481@Serenity> <20191006192109.GA9983@keith-busch> In-Reply-To: <20191006192109.GA9983@keith-busch> From: Tyler Ramer Date: Mon, 7 Oct 2019 11:13:12 -0400 Message-ID: Subject: Re: [PATCH] nvme-pci: Shutdown when removing dead controller To: Keith Busch Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Setting the shutdown to true is > usually just to get the queues flushed, but the nvme_kill_queues() that > we call accomplishes the same thing. The intention of this patch was to clean up another location where nvme_dev_disable() is called with shutdown == false, but the device is being removed due to a failure condition, so it should be shutdown. Perhaps though, given nvme_kill_queues() provides a subset of the functionality of nvme_dev_disable() with shutdown == true, we can just use nvme_dev_disable() and remove nvme_kill_queues()? This will make nvme_remove_dead_ctrl() more in line with nvme_remove(), nvme_shutdown(), etc. - Tyler