From patchwork Wed Oct 26 22:54:07 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: 9398593 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 1952E60231 for ; Wed, 26 Oct 2016 22:55:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D682629E21 for ; Wed, 26 Oct 2016 22:54:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CABE029E2D; Wed, 26 Oct 2016 22:54:59 +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 2108329E21 for ; Wed, 26 Oct 2016 22:54:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935545AbcJZWya (ORCPT ); Wed, 26 Oct 2016 18:54:30 -0400 Received: from mail-dm3nam03on0080.outbound.protection.outlook.com ([104.47.41.80]:22688 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932707AbcJZWyY (ORCPT ); Wed, 26 Oct 2016 18:54:24 -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=mW+uAdQ7WZuyG76KYw3R633ZWGWOKhi3N4KPmsbkpzo=; b=MRzANy31lb+8sJGr66urlB5HnY8ir3MN7oJF+AIrV5an8WLzWoZBZSM2kxgkFuSRbQyqfH3wrVjjNaq/yfC4PILaVYXOmARb9b6zbdRDECG9ZYwi4MkNkGk3mSrdzn+f9YT9DPd3O08TMe6bFDIBdQEiXjF7tra0vUOTMwuTiqk= Received: from BN6PR02CA0025.namprd02.prod.outlook.com (10.173.146.139) by DM2PR02MB269.namprd02.prod.outlook.com (10.141.55.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Wed, 26 Oct 2016 22:54:21 +0000 Received: from BN1AFFO11FD014.protection.gbl (2a01:111:f400:7c10::174) by BN6PR02CA0025.outlook.office365.com (2603:10b6:404:5f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.12 via Frontend Transport; Wed, 26 Oct 2016 22:54:09 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; 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 BN1AFFO11FD014.mail.protection.outlook.com (10.58.52.74) 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:54:07 +0000 Received: from MILHUBIP04.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 6D.D2.26959.C7131185; Wed, 26 Oct 2016 15:43:09 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Wed, 26 Oct 2016 15:54:07 -0700 X-AuditID: 0ac94369-babff7000001694f-9a-5811317c37ba Received: from exp-402881.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id B8.FD.02564.F0431185; Wed, 26 Oct 2016 15:54:07 -0700 (PDT) Subject: [PATCH 07/12] dm: 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: Date: Wed, 26 Oct 2016 15:54:07 -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+NgFlrPIsWRmVeSWpSXmKPExsXCddJ5kW6toWCEwck7rBb/9xxjs3h5/gOr xcrVR5ksVk3Ms7h39AuTxd5b2hbzlz1lt3h2qJfFovv6DjaL8x9eMVksP/6PyaJt41dGi/c/ rrM78HpMbH7H7rFz1l12j8V7XjJ5PDi0mcVj85J6j903G9g8Pj69xeLxft9VNo/Pm+QCOKO4 bFJSczLLUov07RK4MnZ2cRQc5qv48eM8YwPjOp4uRk4OCQETiZY1X5hBbCGBpUwSTzdodTFy AdnbGCWazx9ihSnqeP+KDSKxmFHix/O9LCAJYYE4iWtTNoJ1iwjISnzf/ZoNYpKdxM8z69lB GpgF9rBI/HuwFKyBTcBI4tv7mWA2L1DRj4dv2EFsFgFViYN/boDZogIREpu+zoGqEZQ4OfMJ mM0pYC+x5ut0oIs4gIZqSqzfpQ8SZhaQl9j+dg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Jp9a+ fymbM6v/+TIFnc/tHz2jn3e17bxZoBS9r8PLu2yD7MrvEz4yWEhYKLEUZyQaajEXFScCAGX4 PsQ6AgAA 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)(189002)(199003)(23676002)(2950100002)(6916009)(110136003)(2906002)(4001350100001)(189998001)(69596002)(626004)(65826007)(5660300001)(81166006)(81156014)(8676002)(586003)(19580405001)(19580395003)(4326007)(230700001)(36756003)(97736004)(8936002)(83506001)(87936001)(33646002)(106466001)(2270400002)(7846002)(53416004)(305945005)(356003)(68736007)(229853001)(31686004)(50466002)(92566002)(47776003)(64126003)(65806001)(65956001)(86362001)(50986999)(7416002)(11100500001)(54356999)(77096005)(76176999)(31696002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR02MB269; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD014; 1:ciba31TF4vUIQV+ahxdZ3cXNZkhF4/QIbWoBJQ2n0dOtMexVozOnhpeWuaHUABNUKfbd8+FPrSYS5x69wkK9vnoW6v64JMsJF5as66asZUq1+D4AF1RD83dVLpISsj0diKEv+UZW6S5OHgpiexVWCvloXhEgOO+HzN+I0Yz0jkqpI9JwHLA84rzkh5B4S/mQrtwP74TpsNIvZqYU6nCqXG85wx/b2Wfonaf0OmHrkmp+PCkmamZzT+yAOYxKAz1XpbDrI24Hg22yAOTZTxXysSvkQ6etN9Ly/8V7NyGCFBFZuaGAUQXym1BUegu+af/ZHsqWNHQzjm7xgkk1I+nBjWe+w1F8CnVyx+oLfZyIvZlk0DAPrU3C+oXegbxn3PjBj2fKQfsliJAWjAJNnFuP5ZG1MD7sa3VQj0nL2oTET3tT0wmn34dAePXgmcekNmaxuQUuGKvMKQB3EGaS31Cydna7h5zbcZsiczL/2vKwx3sz1JqAwTHa4D5o5S2++iVEBeMXzfZFjhsy1g6k46L07EAMgPazarard5bonFT455dCE7GJ0i2LyuZCt4MT5Lmg X-MS-Office365-Filtering-Correlation-Id: 9b6b704f-adc1-4d79-8a7e-08d3fdf2fef9 X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB269; 2:+kpDDqSGDbILHfLoy7jaKl5gMgc2ApVVUkCJ3MZHzpWl0GcGSCRBMlBOYODSc40B9lTQ4hHkNasqVK8pjsWIUvKtWgOWaMd18nHIueI9dblcOlEi2TKqFAJDADhi/PGaj5l9NWJkL34bdjBaZH6cYZrtP18GwP63Ip5Gn8kM/SAMPC8uXPt+3EDzzBRIqDp8Y75nltw5quQaNjzwWnd7Eg==; 3:fdmNYrPeJXS3J0VdyuBji6+xtCJok/yZzXCx9UN4Hd2pgKNIDsL2+vBkPni/02tFfUTiGSDXbWKCL7imuZMofFDQEyFVaeCEFKsb1GA7Xljd5OzVkPYDYV0EQFzlXeg4wIApB+kGukSh0qc2pMVJhURuXqluRTHE1VAEePGdnwZbd5WhPIhkJATigt9Hku8ZECcKvvNhhC9pgbmeF9bHfRhZQXjNxDiry/rp0cDSFCtuQSQ+0bKx80vAiHF2AqIRILIOz/2eyucoqdy06NllE+e7UJogRTBrKiToMtTNTDE= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:DM2PR02MB269; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB269; 25:mdLUVBB+5+WO4q6zptebiVjcIgyEBTXXv2Q2WefFI8rkjqt7VfoN1+r2i5UvPCAybm9QiwAnnVpQhh/0Y8DBfwIbqvRKmy9Ma5vQc+ftI1LWakqwGcEe2CUUOut9vv00sm0uQjHOsW+vGGt6OrTJ9WlOauYWcybwuRHSO/1ceDUebnasXDjHr6rsm9wrNWLaK4op2ld8vQT/oyYhqaBFvFHfcMTMaODERx0CiX4/7ye4ITBVaau9gdT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IHEZHupBKzu8LS3QI40W7ZTIOZJY+9Z4+Gb/I5FIrXhsNx9tDXmKYDYIhOOb4EkWx/fMcZmTkvTpzaUt63rXSHHJ2VsLhoMwfHc3lr3Vgly/+s/tfMBxp9EIQnm+K/wbIojV2hY7qDTC8ZZeFfcc/zTVEsYGGH7Quvss8DGYwokXZKGfTMw3HnrdjBLLNU90xIgglry8Kiv+d10ihvqN9P9CIMVtENlHtyVjD2O0Q5aszCVetwG9mo7wcOEN3za/uR45/DSLPknX2+xTTL+HHJ3N4o8kfdeJgR7Xb X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13016025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:DM2PR02MB269; BCL:0; PCL:0; RULEID:; SRVR:DM2PR02MB269; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB269; 4:FdP0CA5k1N3/ZFVf0oqJ9U6MT/bjgsNTm5IWoZ1KrdGG23JZm1L5tmlj/hjJNxbnD9flve0XTnWuf26Wh7FdiX0fMmo++bSGQqiW4U4LOsR/OBk31zrfqoe11slN2uYYDQ6YleZBgS4lO+6xyb9jKdxYqrHeWdDdVfDKd5T3g0D380u5JnzMfjUSuowkX5DHBJLHHqIl0WP9yN7+gAePLipRh9G5CQ83EBw+dbf8a7kBm+WQ8i6WcGfcAR1LQXS769I6JHu3FKCv7V5egbuV6n+wZE/xJkYW3ZRMUReA/URGVo9+0+lk2/Vo8JD0zZDZXD0x0qW25myOPJuzTmLOKR2XLardVzrNIJKIBIg74Uhp7QLFFnBqS8B3gBK3B8Pmwt31zzzFB4SYMZroC/mX7siLFud1qc3n+aSCmeoTVnMaTaJiKiFjz8GB7LimS925tJhIphziZs6L7h+T+3e+0F6K+pb8xXigvA1f86eZHFF5jDsSAjDGdlkIgHO5g533 X-Forefront-PRVS: 0107098B6C X-Microsoft-Exch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Exchange-Diagnostics: 1; DM2PR02MB269; 6:7ghPAnhtf7M4fEkVGY40Gwvbm0orhxb1bIFYaWwz3DebKVAQeNFAbRbP7phSjaElriDWwkCYcmt696z8E/9skpItNGQA/zUPBF+us8C91JJarBv/Cc8UtpHLgV8VV1SOGn78dhbMWIrXEFt6aHkGOe/V6p8pZZQhKjYmrkqnG+3OTvfrqjkVe1K4F3ieNByVe5n7DfX2RgpbPqfB/KVowEbuELH7nhRg6IH9TFqU7bGw7p28RTwESNmVKG9kr+fWVXse+LEpn6xUIzKthhx7kTtBNtUe4CJmxpNjJ+Cjf5UamTP4GLdIsUDnJTuJZpXzutAI0lqI4xTAlZBVosakq52MamHgD2Uc57doy/sy3j0=; 5:fUJg/cJdI/YATNzi4vGmYtsLnUQHLhTdx+U5B2pKfCWX99gfSWOPDk1ZEOddDzxjjdBl69NVRfIn/R2/9ZeLegECh6GvSBq48qWAWfB/fUFMd9D0MkRmAe297JMXVQSXkT/FhfYS2whIdqYFFWRvSg==; 24:BM1qJWEIIfgIFlUgPm0W56j1iJMRNSA73m5frDxVWJqR5HcwFl/oPuTG/vpir6AiUou6kgv/8SYbYwoq/BmscYeZEvPRTsR6uq7eS1u3EB4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB269; 7:4CVIIXvpXqh2TRUaqJiE+xIe9Jprq68xNKnUiws5R/NW/ypdFQ8/Md1wXN50r97om2U8IH3p9vLDibmRcjZz1q9vYGyXLrP4mWfWEEPTbXyJJWVdKPRk5ABxskOEJvweyd2IsQ9otVNTw1fqaIGXgAlmJrptgCUA7xDgKKDX+spQHa6ulrju6kxmE3sdKkgojGjWL8sZtRrRFXWcyb1fujey197C/62k2+dhFZaxwfZBXDPHKVAzcgXbsdmF8qWuOkgUh5mDbHWLwq7UXlXlFd/W82ogImY1owUFx+qcrQHumVSpZSzUekFMwKq0aW2555k4fhr0VjzXq/u6vB3LUM7zYDqHkWdhqa47GaS2qW4=; 20:hambwSSKffm8y7YzGf/hTJ7Uodt9QfJZL1rGcTO9PR7jQ7vMft/QuB/99WORm7Bb9DSa28hhO65QmrrrLvEYc82Z2mIiTv3oNA9d2B76quF5RYUiTpAgr8hMHXvXO/y0+ApaQtAMmP4pyGOmhdG9A7e361x90AWfPwtI5JUdR2UG3nY+Dw5E+zJPI4naPZQ/IKjtHal8bz39YthKnyS6HWHZoPdTJHezHhNos9FwgIvvAv+mb5zHokmMsMfxTvzI X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2016 22:54:07.9819 (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: DM2PR02MB269 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 Instead of manipulating both QUEUE_FLAG_STOPPED and BLK_MQ_S_STOPPED in the dm start and stop queue functions, only manipulate the latter flag. Change blk_queue_stopped() tests into blk_mq_queue_stopped(). Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Cc: Mike Snitzer Reviewed-by: Hannes Reinecke Reviewed-by: Johannes Thumshirn Acked-by: Mike Snitzer --- drivers/md/dm-rq.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c index fbd37b4..d47a504 100644 --- a/drivers/md/dm-rq.c +++ b/drivers/md/dm-rq.c @@ -75,12 +75,6 @@ static void dm_old_start_queue(struct request_queue *q) static void dm_mq_start_queue(struct request_queue *q) { - unsigned long flags; - - spin_lock_irqsave(q->queue_lock, flags); - queue_flag_clear(QUEUE_FLAG_STOPPED, q); - spin_unlock_irqrestore(q->queue_lock, flags); - blk_mq_start_stopped_hw_queues(q, true); blk_mq_kick_requeue_list(q); } @@ -105,16 +99,8 @@ static void dm_old_stop_queue(struct request_queue *q) static void dm_mq_stop_queue(struct request_queue *q) { - unsigned long flags; - - spin_lock_irqsave(q->queue_lock, flags); - if (blk_queue_stopped(q)) { - spin_unlock_irqrestore(q->queue_lock, flags); + if (blk_mq_queue_stopped(q)) return; - } - - queue_flag_set(QUEUE_FLAG_STOPPED, q); - spin_unlock_irqrestore(q->queue_lock, flags); /* Avoid that requeuing could restart the queue. */ blk_mq_cancel_requeue_work(q); @@ -341,7 +327,7 @@ static void __dm_mq_kick_requeue_list(struct request_queue *q, unsigned long mse unsigned long flags; spin_lock_irqsave(q->queue_lock, flags); - if (!blk_queue_stopped(q)) + if (!blk_mq_queue_stopped(q)) blk_mq_delay_kick_requeue_list(q, msecs); spin_unlock_irqrestore(q->queue_lock, flags); }