From patchwork Wed Oct 26 22:56:04 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: 9398611 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 3FCF960231 for ; Wed, 26 Oct 2016 22:56:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 088EE29DE5 for ; Wed, 26 Oct 2016 22:56:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F143229E21; Wed, 26 Oct 2016 22:56:52 +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=unavailable 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 9411C29DE9 for ; Wed, 26 Oct 2016 22:56:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935281AbcJZW4r (ORCPT ); Wed, 26 Oct 2016 18:56:47 -0400 Received: from mail-co1nam03on0074.outbound.protection.outlook.com ([104.47.40.74]:10158 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933575AbcJZW4m (ORCPT ); Wed, 26 Oct 2016 18:56:42 -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=xbM+ts0wKfSGvxZoOY4OR5Lj//Vdw+jXNw/MtedVZkg=; b=ldBeOpMciaNZr4GLn12/hi+NR6nAxSM/fFz43/9OhRRUQhWNJ7ZXvsprIODVefSfO4XJcjMyZGCSUFG0GYY3+T29aeVjdhlM+TgnDiVqKlrVBXkDrAmP5pMhST+PYmHx9fJ2KV9mf/bDa2Jk1EKzemPKkj/m0goCGo30EnsEam8= Received: from BY2PR02CA0062.namprd02.prod.outlook.com (10.141.216.52) by CY1PR0201MB1578.namprd02.prod.outlook.com (10.163.140.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16; Wed, 26 Oct 2016 22:56:08 +0000 Received: from BN1BFFO11OLC004.protection.gbl (2a01:111:f400:7c10::1:145) by BY2PR02CA0062.outlook.office365.com (2a01:111:e400:2c40::52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12 via Frontend Transport; Wed, 26 Oct 2016 22:56:07 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BN1BFFO11OLC004.mail.protection.outlook.com (10.58.145.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.5 via Frontend Transport; Wed, 26 Oct 2016 22:56:06 +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 1D.BC.61581.63231185; Wed, 26 Oct 2016 15:46:14 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Wed, 26 Oct 2016 15:56:04 -0700 X-AuditID: 0ac94371-5f3ff7000000f08d-30-581132360b2c Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 33.D8.03615.48431185; Wed, 26 Oct 2016 15:56:04 -0700 (PDT) Subject: [PATCH 11/12] nvme: Use BLK_MQ_S_STOPPED instead of QUEUE_FLAG_STOPPED in blk-mq code To: Jens Axboe References: CC: Christoph Hellwig , James Bottomley , "Martin K. Petersen" , Mike Snitzer , Doug Ledford , Keith Busch , Ming Lei , Laurence Oberman , "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: <805e1911-cd10-0563-c76b-256d76054b08@sandisk.com> Date: Wed, 26 Oct 2016 15:56:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsXCddJ5ka6ZkWCEQftNYYv/e46xWbw8/4HV YuXqo0wWqybmWdw7+oXJYu8tbYv5y56yWzw71Mti0X19B5vF+Q+vmCyWH//HZNG28Sujxfsf 19kdeD0mNr9j99g56y67x+I9L5k8HhzazOKxeUm9x+6bDWweH5/eYvF4v+8qm8fnTXIBnFFc NimpOZllqUX6dglcGVcn6BRs4q94d+I0cwPjSt4uRg4OCQETid97a7sYuTiEBJYySSzd/ICx i5ETyNnBKDFjfxWIDVJzZ8cfdqgiRolp3/6BFQkLJEi0H1jCBGKLCMhKfN/9mg2i2U7i55n1 YA3MAntYJP49WMoCkmATMJL49n4mmM0LVPR200R2EJtFQFXi3ONzYENFBSIkNn2dA1UjKHFy 5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N/ZRlhH7NKXz/k12XVB2rulGanp5YrB6/wY d5pkrT54sfHGEe/l8Rm/JT5K1vTGeiydOCfB7/X84grBihbGuctS05VYijMSDbWYi4oTAQ+O SBs6AgAA X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(53416004)(229853001)(36756003)(19580395003)(31696002)(106466001)(23676002)(8936002)(65826007)(64126003)(50986999)(54356999)(19580405001)(6916009)(76176999)(33646002)(356003)(230700001)(7846002)(50466002)(31686004)(92566002)(110136003)(305945005)(2950100002)(77096005)(83506001)(68736007)(69596002)(11100500001)(97736004)(4001350100001)(189998001)(47776003)(2906002)(86362001)(65956001)(5660300001)(65806001)(81166006)(87936001)(4326007)(7416002)(626004)(8676002)(2270400002)(81156014)(586003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0201MB1578; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC004; 1:q1Ou4wBBel4rlOuwQe55j1o1OcUrp6qNX+Fh3zVpOnlEvBJLiwo/UiSHjxVBtZiWUHZThHyReERaqNa3mTiJYQWkghsb3/Y1e3gEK0piF4+qu06XFxzWjX/tHrWgyI8jPxXdGfxltAWwfaDoUa884xOM2XlG0u1QgOIbBFfVs9p4qqWVmVFZyC1N5K6zcp0mH6DpqvrYqBlUNvjhOKvCat0zZZaJwN+bVKBd4ZqVQjL5sP/XET8fyu8SCb1hdDPsfKHN82ULG1zR+Bp63C9maUY4ECgiKEE1t7HvazUW2pqekjrvaxds5wcLHhg8sI2y/X6664Sjc73gtU14bYfkmS8hhwqd4KT5InICVB4qcryvFCYQrEArM3AQ8Ra9TODIoPHAhBumS8cRRXibhaQ0nB1Axvergn9YB1GaemmGuJ29oivXzZeKPWdTbR54Hz/8SucsE+4eXLZdspdF3kYEcrFUleicudiVdosL+vX02XzuUdwcSC7uhIY347mVQPwfmxiQ14x/5GpIUXbdxd9M5UfqD3O8eTUZ0fkxDC5M2zQEyaixY9DA95OldgbV7+1+ X-MS-Office365-Filtering-Correlation-Id: 4560742d-97d4-430e-58a0-08d3fdf3457b X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1578; 2:h1lHxlvMvJ/GuKs9C8h0jYG56jYoddIpk/0uK8crw+s0JlYM9gXbwitekpROOgx9nDaYAizuL4f/pS+eqqM3vAw9IHIDLka5sGF+TISiyK3DlqQY1td0adpA+3MVUc/ZfK3KoSj3VPa5oVmvmDG7jX1y2ejWqTWJifGW2aAwB5NrA5aCsjMP2PcqdavVQBxownLnAkx5MMmQ0bQLfxVj5w==; 3:y7mJC2CJ6xRgDsSpKrQB6V8bWzI2kplf74d4x2A3LKxFc5P5hzWIo28VsnJftwpNtvBasDv53TDl4Fkhu+Wndh2rG9qYls8aZ2NtDwGDXwITAlxUTSzKPa26agQAw/FUA0REJe7Pes/3KIryviDcANfvaQXDzCh0dxwdQbms8r2q1LA2NG25vClWSPH8ik4ycoHGMKLfXMI+E1JTnahWimbpQ68fD42qlug9zRdLH7d0qC/rCzmUpRZYQfSh/2G3LkGHzbjwruKXCjAsBUeUyaqQhGLtxlBzAr28baDyCwM= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:CY1PR0201MB1578; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1578; 25:Xm96CKAtE0r6qqdp4Bx0prCr5D2KE/+11vG0KQQUiHBQwrhmYai0jBww65Z32/OHLG3Hmz8hk6y3119YpkQcey6gKDiMD5a1Jx7j4VadQVATo18D/9z8rSyFmzjjC/bWti0tktnZsciPXH+D4S0NjULoAKRi6l/P8eqBPzGP2AMULMJQp0+omPkHwaUx/DBSS6iRAdnWXlTlFlTNZA8TzgtQduKhHxAPGNaPayS+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vN17+AB4EbttCAwRBv/Aqs524WzUqnxXpzCc8ec19yZ735pXFkb/iGCBACkmb0SP/Ra42ntU9X1+bDoAaIaOKNtvzv6OIRb2a7PthLEg1ftpRr82q5BzK09iQNyfnRLcWy5tI7CSN97Q3Kwt51OCCfI68Oa3X/7+c16fAjfRMUSgpDCfCHw57ar0YSmF4/Gx6KfGb02kb1s+xZBcWLkt7BQ7klPDzZ//LFN1T6pirWAl+fFxNTZ0JF4rpuPKkJ65BrL+/mPueWoO9XAH9foDURvwi0PwB/Xpj7cSsMmBdwJeWoFzIvaoroqB/ovegrVIk+NS2t5HVW 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)(13016025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:CY1PR0201MB1578; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0201MB1578; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1578; 4:vBYHHNtGItn4+Tra3vt+azJ5fjK1vsNNr0NVdDEqzDYycuYEZ6+csGfHjCy/kUsGJtmizZKmA88n4qG1Jw71YID7gpyXJB4FqmAWz1pHMbLICTYyIVZcXGddbqCVeaA8k/OTXhYUTfGz/UPX/FohS5mLxZGz3cSFuhUNiner2ZzxWOZjdDG89Vz3cx3XHa78lKCZIcre6POE8IdHFh1m79TDtMCk26chI0XnbMdngbN9d+8be1APz6wGJr7xVKT56z9SxblNbdPeRFhELM5WjwFDLvQYHSTkMZd4RoDH65N+R/GtXZamVDX/XnUHHVypq4ZC1B7Q2KAnwd82+qpapzMxBUAVlJ6RoQMo8y6cycOWLOKpnPdd4s44ydNHprPyF/lWerzDQQbnMYKB+ns5b/sYyn9I1xlx72GkXvggVtgREnIHxdlYBBlUVUG77vpqAyVDwsLWd6JOAyqDIBHqrMfgXzHmjOYwZA2jZIyx/P9oyV4K0gZepnYdmO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?cDdlZlMwakowVUhVTUtTTlJ3amtrZmUvblUzeXBPSXE2NGNiMmx3UEJUOEJ1?= =?utf-8?B?bVRsNjUyNmkwRCtqNXZYa1pRPT0=?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1578; 6:IQIMyPjtf7vYaCLo4yqBRQtzpqOWZcqTIgOWHyEJFYmYd6CSIB/dx0x2dnfF25irgFf9a8cUB+UUMnXWwb3twdeEFvYGaunKbdcp2mg19UVF7VA/800Vqmqe4zQWPFcBaVJusVetiD0sAXwtgx6/uh4w8npgXajRnKkaKsIgKOeeR7eOPIHm6vZYjAiSht1wcHGf054r+tuqPY6YgftIeUNw0onLSeTv8terrHjRmXv0m89KDr1EWBq0jStwkwa5JSnLux+jivRDBJQZFFgVSjU48adUWkeW7OYOKxXy/X9RD+0E/5ukUdETUjrKuVyZv5WG8DE/az2LANOIfLIsYTCVBGA1tRzSJtwpNL4CBpk=; 5:G4yyYEG0tTI/xdqkMmPqeRaW9lTHMONso2wo4h6MKRgx8BpGVuelzlVDA8Ef0DnqmlorvqhQIgKTuvRxcnSSHivipfKUuZqHUJzPXFFCdpuLScU2ORLkKFF7AIjeOs5Y1BZma7aLYM1dOcQvXAddAg==; 24:Hl4UhTCa7klx7m/n3l84EkOdN8gpV958DqDwZOHySL0YoRr9vbQnqhmnxy35ahUHFcXTfhYwcW/1nNaAT9Y3lFAG8GrHWrofW+t3I9vi7eU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1578; 7:Z6NhR0ulHLG2UbJ1BxJfJN5bAPRfq+BObAeNigjU4J0EYLJ4GsmoP/Bqm57zzv/EWFcW8cUCwwHCYj865VpJXBHAFNk5JAcnEvGtoxfgNXNZIuS8uoAnfkT9RCYeO0wTJ5PgrV28J6pDdk9iE5LD+z8T8vMubdGXKtX3gG8F05ny0ntSe4Ywag3tRJ71Vam71bL/PPZIk+HiIEQFecQx/LO1V5LTHRy3Lk1R+ml4iQCURydJW4kVfgAfafCuQZ5Y6e5SrMs1fTik51fx3ES5LKLtrEmnuxyDZXTqJNe5ZqGKNKCHwawiiazQd8c4UiOz4K1jGfbPIL79tN+k4P+NOUosqvk9z0CcqNxNWVghVRs=; 20:kcYnWwYp6c7XFyyBd+CZ+KylTE7WdsGIcLJ63OTsJ4BDDD2UpfJONipFAhsbEIdSdVQxdtV3a97jF0feRJ9rSBPEc5nmvdQaJyjePCJR3FAqg+LZ2H+6e2BqR7yCSEIRVVdEQASQPwDS1Coz3oyiFVzHafuPRxK5+ra9+UCZMJ76LeZNwjg72Zs1C1qd6K4jPGkhkGc4NHU5aPNwEGBbKBBs4gnGV4wIP1sWIDhIY3UKTHM4/PcTpO0/CRQdGRQ7 X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2016 22:56:06.1639 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0201MB1578 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. Change blk_queue_stopped() tests into blk_mq_queue_stopped(). This patch fixes a race condition: using queue_flag_clear_unlocked() is not safe if any other function that manipulates the queue flags can be called concurrently, e.g. blk_cleanup_queue(). Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Cc: Keith Busch Cc: Christoph Hellwig Cc: Sagi Grimberg Reviewed-by: 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 7bb73ba..b662416 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, false); 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); } @@ -2079,10 +2079,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); } @@ -2096,7 +2092,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); }