From patchwork Mon Sep 26 18:27:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9351137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 03845607D6 for ; Mon, 26 Sep 2016 18:27:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBBA028805 for ; Mon, 26 Sep 2016 18:27:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E063E28A18; Mon, 26 Sep 2016 18:27:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A8DF28805 for ; Mon, 26 Sep 2016 18:27:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941512AbcIZS1U (ORCPT ); Mon, 26 Sep 2016 14:27:20 -0400 Received: from mail-sn1nam02on0089.outbound.protection.outlook.com ([104.47.36.89]:49871 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934150AbcIZS1S (ORCPT ); Mon, 26 Sep 2016 14:27:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=52FmqcDqbnUVA8kXfjnAd+1S6Go9JUmYa6wEEAzuh4Q=; b=iMkxRKq3iAwIdiS6llTavISmQyPeWERDQhcm/AlAyV4MTyTjiFLb098a9kzUKdCDMmH36CNq1Zn7YCI/W+3urz/0p9vUPkLYYPvoGs+tIeHr/E0PFE7Z0Y8od9tWlSm5p+WBKP+QmG6Vppy6E/+Nk9C89rSyJtauLwsS4VGhVkU= Received: from BLUPR02CA051.namprd02.prod.outlook.com (10.160.23.169) by SN1PR0201MB1518.namprd02.prod.outlook.com (10.163.129.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.8; Mon, 26 Sep 2016 18:27:15 +0000 Received: from BY2FFO11FD033.protection.gbl (2a01:111:f400:7c0c::142) by BLUPR02CA051.outlook.office365.com (2a01:111:e400:8ad::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5 via Frontend Transport; Mon, 26 Sep 2016 18:27:15 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BY2FFO11FD033.mail.protection.outlook.com (10.1.14.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.5 via Frontend Transport; Mon, 26 Sep 2016 18:27:10 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id E2.C8.26959.E2669E75; Mon, 26 Sep 2016 11:17:18 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.301.0; Mon, 26 Sep 2016 11:27:09 -0700 X-AuditID: 0ac94369-b97ff7000001694f-58-57e9662e4b9c Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 75.DC.02783.D7869E75; Mon, 26 Sep 2016 11:27:09 -0700 (PDT) Subject: [PATCH 3/9] [RFC] nvme: Use BLK_MQ_S_STOPPED instead of QUEUE_FLAG_STOPPED in blk-mq code To: Jens Axboe References: <7948dbb8-6333-dc62-2673-4da35b4dfdbc@sandisk.com> CC: Christoph Hellwig , James Bottomley , "Martin K. Petersen" , Mike Snitzer , Doug Ledford , Keith Busch , "linux-block@vger.kernel.org" , "linux-scsi@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "linux-nvme@lists.infradead.org" From: Bart Van Assche Message-ID: Date: Mon, 26 Sep 2016 11:27:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <7948dbb8-6333-dc62-2673-4da35b4dfdbc@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEIsWRmVeSWpSXmKPExsXCddJ5ka5e2stwg1d/TC3+7znGZvHy/AdW i5WrjzJZrJqYZ3Hv6Bcmi723tC3mL3vKbvHsUC+LRff1HWwWy4//Y7Jo2/iV0YHbY2LzO3aP xXteMnk8OLSZxWPzknqP3Tcb2Dw+Pr3F4vF+31U2j8+b5AI4orhsUlJzMstSi/TtErgyTj99 xFbQxlux6vx3xgbG5dxdjJwcEgImEre//2btYuTiEBJYyiTxe/olZghnB6PE3C93mWGqmltn wlQxSpzb9RksISyQInFj1Rl2EFtEQFbi++7XbCC2kICdxKzZbWwgDcwCH5gl3vYeBUuwCRhJ fHs/kwXE5gUqmv+mhQnEZhFQlbg+8RIriC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yx+Mcnb43LTfvnreJ5+/clMmHQ3beUpCMc1j1fdOEVQy3ShzTr7tO +FNbusLJY779nYPrPtuo+vF86VG4mm32nVuJpTgj0VCLuag4EQDGqmhDLAIAAA== X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(65826007)(19580405001)(7416002)(19580395003)(50986999)(229853001)(69596002)(7846002)(305945005)(53416004)(31686004)(64126003)(2906002)(106466001)(50466002)(5660300001)(92566002)(356003)(626004)(23676002)(86362001)(230700001)(76176999)(4326007)(33646002)(31696002)(54356999)(65956001)(189998001)(2950100002)(77096005)(110136003)(65806001)(8676002)(81156014)(2270400002)(11100500001)(6916009)(83506001)(97736004)(47776003)(586003)(81166006)(36756003)(8936002)(87936001)(68736007)(4001350100001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0201MB1518; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD033; 1:6ydRYrzZ3f59q5RS9Xz96YJdM1StnquGhihBCklKbeNHwhAgRLBgRTUm7BgtOhQVLYYqqwAiRQEUHEX6wsoCNi9FlOfXiH/xKE4KCkBw3c43rAKVvYeIrCxGWqYQ/EjLXawirkgNP7orngDsgYCkBGfix4dUkRlVsOyRNGMOIrf0vftmjQYOtYkmSXptIUJbz9qk/hobjJAon/fHbE+Nxqj8ZpPrUts2c6UQtAiDmqob7JgU9ZvGcQaak/u/HpLmzGbyEP5LWAe0SoEwJU4WCXKmY3R1cRtJqjS6DsH2LFFAmeeDv06YseIhi8wgczjFfyZu93wjbVLkfdtshS6ha59UEf4Zp8eYAv5Bpcr+dw7xQs140Rcht33eQV3NEbO0/kWoFdctCS1Lg/uDozx1bTwULLw8+D76S9M5HsUjQT21tSWsZDCPIOVmQ3njTBYSXJKCNsW07tO320N/xY88sd0q/sjGwxPLuxOeMllKExhU8C4/U061KTRYCSVCGSx7j7nNJZtKDYM2Bom6KK5yBtrYe1mC5lNh6j/gJ8RtL/uaJCsRs+xom0EbN0pkNUQz X-MS-Office365-Filtering-Correlation-Id: 71529228-adc1-4929-391a-08d3e63abd31 X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1518; 2:zmTSviKIRYzyNxYdc3FJ1sfF24VsA62YLqy8tK3nIRaRJXf+5JQpKOmsGxNGSAeEbGJYvoeQxtGyjTL9aRoGOVCqZYCz7ZJa7uJdjR21ZkJxuUtl7C+bhwhpScTlL8owFbRcwJ0pNoVAsYooL1JLZvDEpuUeFOZlG9e1Mc/NIL71bPyfKnEXntMgeQEwezZ0; 3:7Oioiit5+eWjlHTmf+4cyEcSRvqU1u/cqTYTyHIfg6bha6la2u+04KgnwwsHd0+QOhTqLz4xgsSCE1PBGztuRuGOQd26eM7fVlrn48x8mLlSPc36GA31vcahPv30/DiodpQ86T2CGQzMVDs0LRsA/3uwgmE/yS/tDkltrwIxwIte1kaqbmsdHAuaB6u4mgytdvBD3gNVCvefYWpjkt1j/CI5WnYsbYt68O8Eb8HUPqDNg6NwaJb2lgUB4flVAQzDpnk0ylwnul0DzciLmUy2Vg==; 25:M7dPQVlNeQbcjP4j3DPaplkFHhIcy2Q8qqT1fqQ797YupmqvgOiOmKLVSoU3xHI3/WfMDN4TeULcgt5p1OTTO86PbX58xmdKOiesdhmbN2C3LbtQkwHOmXoIN4mdweCIjDueX5/sC+stGhV9RRhremfd6RMYn/m1vHv6cY1vY1yXGWSzVoRN+ymy5I/rUcE4WSJIcEUsEspR1liiQnCN+TH/ngDJ+o3aIyhlfKv9tySHOPx7x9zfX6ahVIDjSVTn56vTLumWmBgGmFRn/5hDhGm9nBwWSsEPHFIcEMp424+6//XmlveglmiJzB+kFOlT83t7OYL0qxg6Q6zP0P57lNjb3bZdRalhhWPrMPTz7NgcWuSiJ5STuWyX+sOCwxm6kFHZr7+Ad2s+P4EboQSbv2XIiJ4MC0O84MwUtnbHMS0= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:SN1PR0201MB1518; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1518; 31:99wdlKGXuZJBGCQp9EwiVEIw1ZPSz8t1l4rYOvab2GzElF39VSrAuOgNM5mVt1RjIG0TNa28BfILL5dYdFTp3sXZ/1sGwx0aBjEpv5iVPhx5db1x4L1IfjL2juZWLLFI9bLXxpg6WQLsfIEE6KwBEC83vfTnv+5SnZ9N4w7Ny2ITczSq3/YelW1lkxCVTDZc6t5jZ+IMry9mAoXzbPvDUBjYkzbzNu45Oc8mh53ksDU=; 20:p5H5eqAd6zzzjcEzEyk6k7XXA9SSNh5NqiiE6bGqR71ock4YRE4gBPdl68ebkNF7j/V5o8tkPnmwNEGRig4J8QOtKOPHHrOJk22RKa3y5GeKbRH+sk/JG8LN3LU7dmmmafIQgxl/xCdx/LccXof8n273G2xM1AWxohuHcDnk1vl56IAvxwuFOe1ErxSCUPHZ2wfZcKK2wv5gyYbX/oDAvnDza49u7ozeUWau2YL4gI9b2nalEng78zR5x8NT6TbsnUGg3hZfusE5nr8NC3503IZECkm6Vr9qg8K/OP18lCJFbBUoZAreagINCsDBzOsJSlD0kKiAQz8PTkseLXQVg/16c+HA0Vqptgi9/Lu7QRSx51bg0RiQ4dgkZv1/3HfAqKxS3yGWfUtkrHWi2T61CM/baE56OfKBFyxJTzLRMD/tTf0Sfbu0vgpw1EKcdWqOz/6S0AM1gc2Fg0kWGV3Ub2/67FvKPGo4CVOTPqF2WST/f2AzZ7OWaNkE4zuzyvVm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(13018025)(13016025)(10201501046)(3002001)(6055026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ZfcaucNoNn5PcJiMKlJEXyArr4+aJovHT5hgTxEkKaDcGFcyhgBZ3Zc6u2iJSz5VUvgvXoG0YtRJ2PL/G/0+uUoZuCylQgHIDzXxuHtFlYrnRasR/VfThZMrvExYeG/c6M6ZHxnpbrkP4tw==; 24:o5Gzgn7aLnZ0go2heKGcpQbtku8qDLv3DGGvHkNwf+4IXeWx9ir6IIZVItAqNd6gu7eDRKP90hnAiNkagDkzlvNy/Ni+RfBXXGZn4Wz69s8=; 7:dCvx/aY72x7BLAJ8SNj9oU4lhin8/MHhlTYnHYBFRijaRVXBCdrTEeucq+uN3t/nkhN7q5A4Poiq3QASr62Hqnm0eXBuqid/5AKmRwtltFUm4c2FosV7Bs8tbF8UeVmQCNRxk9j5bGZCxv/kTktrUrY1KV+QTolNDA+ZlDuMOq7xW7UYSXZ+TPq0FlEJ97vh7g/6h2F/s6bYnr+UpvMi0CtNEeW92TxE6uGpSgLWxOdPFdyWOLCgf7/gOlW3fHOkGuCVNMAfyFcpZfmqAO4e1IWcVHrIGJXZ6etxGfgvchbFze6KbvYvf1Fh2XPYSbe2 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1518; 20:Tmdhcb8DGkBl7j8fgeqKB2F8K5ZM/EXen/Fn/nlRHIGqsUf318sb/tvcb6/NQzt+xnzhnroxsY/vmTaym9sjY+acE2g4SrxyuVz9YTLLo9H/O3Zm9AiXiaoeK3CafaoOE0W3fL0LxBocLe0w7LPDBlClgCapFvkMAPLdPr3Cc0XoqyxGX3HlYEpYD+WEkKxGwfMkdAS2dbOHlZ1sl4fIO0rv7n19TU98YT196scL8zxPMqHwl1iLt3lCsMxkWECF X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2016 18:27:10.6515 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0201MB1518 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make nvme_requeue_req() check BLK_MQ_S_STOPPED instead of QUEUE_FLAG_STOPPED. Remove the QUEUE_FLAG_STOPPED manipulations that became superfluous because of this change. Untested. Signed-off-by: Bart Van Assche Cc: Keith Busch Cc: Christoph Hellwig Cc: Sagi Grimberg --- drivers/nvme/host/core.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index bd2156c..057f1fa 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -205,7 +205,7 @@ void nvme_requeue_req(struct request *req) blk_mq_requeue_request(req); spin_lock_irqsave(req->q->queue_lock, flags); - if (!blk_queue_stopped(req->q)) + if (!blk_mq_queue_stopped(req->q)) blk_mq_kick_requeue_list(req->q); spin_unlock_irqrestore(req->q->queue_lock, flags); } @@ -2082,10 +2082,6 @@ void nvme_stop_queues(struct nvme_ctrl *ctrl) mutex_lock(&ctrl->namespaces_mutex); list_for_each_entry(ns, &ctrl->namespaces, list) { - spin_lock_irq(ns->queue->queue_lock); - queue_flag_set(QUEUE_FLAG_STOPPED, ns->queue); - spin_unlock_irq(ns->queue->queue_lock); - blk_mq_cancel_requeue_work(ns->queue); blk_mq_stop_hw_queues(ns->queue); } @@ -2099,7 +2095,6 @@ void nvme_start_queues(struct nvme_ctrl *ctrl) mutex_lock(&ctrl->namespaces_mutex); list_for_each_entry(ns, &ctrl->namespaces, list) { - queue_flag_clear_unlocked(QUEUE_FLAG_STOPPED, ns->queue); blk_mq_start_stopped_hw_queues(ns->queue, true); blk_mq_kick_requeue_list(ns->queue); }