From patchwork Thu Sep 29 00:02:23 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: 9355413 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 D8F786077A for ; Thu, 29 Sep 2016 00:02:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB0362969B for ; Thu, 29 Sep 2016 00:02:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFA1D296BB; Thu, 29 Sep 2016 00:02:36 +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 058322969B for ; Thu, 29 Sep 2016 00:02:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754562AbcI2ACd (ORCPT ); Wed, 28 Sep 2016 20:02:33 -0400 Received: from mail-dm3nam03on0068.outbound.protection.outlook.com ([104.47.41.68]:3380 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753938AbcI2ACb (ORCPT ); Wed, 28 Sep 2016 20:02:31 -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=jsY38ZDPiq99pKKQPxyUAliJPo9Jg8BdhWsKDROeEyg=; b=dW52vprBjnjq8YsZSdpQPcjKNuYrIDK76rnKYjMt/J6S74YXm8etuO6EGy/Sev3k2A68e7oQN85JH4jLfasnLWv01Rjj6T3yilTz5JPK+wki6CxSktw4o8Z5+GfzSUgc9PPjWeq2jakLpQDYyV26EHx3w1MgbP3Xl6Aietxkfkc= Received: from BY2PR02CA0035.namprd02.prod.outlook.com (10.141.216.25) by CY4PR02MB2743.namprd02.prod.outlook.com (10.175.59.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Thu, 29 Sep 2016 00:02:28 +0000 Received: from BN1AFFO11FD033.protection.gbl (2a01:111:f400:7c10::153) by BY2PR02CA0035.outlook.office365.com (2a01:111:e400:2c40::25) 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; Thu, 29 Sep 2016 00:02:27 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; intel.com; dkim=none (message not signed) header.d=none;intel.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 BN1AFFO11FD033.mail.protection.outlook.com (10.58.52.246) 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; Thu, 29 Sep 2016 00:02:25 +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 F8.9F.61581.4085CE75; Wed, 28 Sep 2016 16:53:40 -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; Wed, 28 Sep 2016 17:02:24 -0700 X-AuditID: 0ac94371-607ff7000000f08d-23-57ec58048e25 Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 8A.A4.02783.F0A5CE75; Wed, 28 Sep 2016 17:02:24 -0700 (PDT) Subject: [PATCH v2 2/7] 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 , "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: <43265806-b77f-b357-cbf1-1d05cf253f97@sandisk.com> Date: Wed, 28 Sep 2016 17:02:23 -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: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsXCddJ5kS5LxJtwgzldqhb/9xxjs3h5/gOr xcrVR5ksVk3Ms7h39AuTxd5b2hbzlz1lt3h2qJfFovv6DjaL5cf/MVm0bfzK6MDtMbH5HbvH 4j0vmTweHNrM4rF5Sb3H7psNbB4fn95i8Xi/7yqbx+dNcgEcUVw2Kak5mWWpRfp2CVwZG6dN Yy84zFPxbWoPWwPjRa4uRk4OCQETiadNB5i6GLk4hASWMkk8bpoF5exglJi/cRszTNX2mQdY oaoYJX5efcMKkhAWiJc4f3AWG4gtIiAr8X33azBbSMBOYtr8ZkaQBmaBD8wSb3uPgiXYBIwk vr2fyQJi8wIVrWm6DGazCKhKnF/byQ5iiwpESNx62AFVIyhxcuYTIJuDg1PAXuL6Uw0Qk1lA U2L9Ln2QCmY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K6NZ/jfl5e89ewYrGMz2me01sV5OXd7iixFGckGmoxFxUnAgCvU3raKwIAAA== 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)(3190300001)(189002)(199003)(586003)(23676002)(65806001)(53416004)(106466001)(83506001)(2906002)(4326007)(92566002)(50466002)(305945005)(69596002)(7846002)(64126003)(356003)(230700001)(8676002)(189998001)(47776003)(31686004)(68736007)(11100500001)(81166006)(81156014)(8936002)(110136003)(33646002)(2950100002)(6916009)(19580405001)(19580395003)(626004)(7416002)(4001350100001)(31696002)(229853001)(97736004)(77096005)(5660300001)(65826007)(86362001)(87936001)(65956001)(76176999)(54356999)(2270400002)(36756003)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR02MB2743; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD033; 1:vzRSxsOguIl4nbO3M+whoVBg1i/tWETCQukZFnoETx2aW1F5xXSiz4n0WNCcge500ATR+u5wGZS1bdFd1tu1GS+M1klOV1EW8xnQUOwLzgvvEScb46niWZZxBi+3CQJWFWHvz3JUj4UhASf42uSyUGfOFsSkdGYd3ydyEuarRZKuMcMWT5knQc0hqNC/eqfmMuaU+YjIjqmWIthQopLuzzAcOfSlEsg/egAQwVtNyzCruMLZVMSXPvea/cEirDbutKkBMP+UZz4AFnB/wX9+Qvtb7B53Yqe7zTM1fYu2QziZkd4HFpWhCf0QpyLAP836AmDH8BwJgB7HDNdvN0IBSoPPQ1WJaNF1zGFdHRG25KEdvmRpXwhqNy7sc42yTfu66ovhYcz16lDQT9elkVvdMd/ptLKeUaK38JVKIE4FTC5boudKmn8817CkTUUPpjrApbIREx4CSll0s8ijQsRNFW8toWEoIsQpirtcBvD516p52DARng7Fyht1BH38+O7RxketLoD+uqSiKw5Up8Bp7tkbCSbejK5TbH/XqwktIpWZHpbDjZE/0tTzLjFaQOCgnIJGqq+Zr8vJB9XH5A42Ww== X-MS-Office365-Filtering-Correlation-Id: dfc7ed62-62b5-4ae4-40a6-08d3e7fbe61a X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2743; 2:qIVXhbpEpQ+k4RzoFhtTIFYzvyOQjhoVZ/vmDKsftvO7oVpaC7k8/rvzuJrw+tQAHEnSeJhtxBF+oTTO+c377BK6mEs4fiCWSW3JC9EdZqGNyaPfqK9pNs2282tXFwcHNFy80oiDU4eEHqLysEhHz+0dYVLp761SCXeVygGBxXaDsyFERcn9WPbSPwMujd/x; 3:/4qlw1gnioluvUUr3JuMf4xExiShjjQ7b3egb9wug2jBodFK+W98wGT+1rQ+MMEt0el2srDcfzgLGryQTU/2RcsiW24Ap3+T1WSjmtqmIyZg/vJVQtAWaczDFh+Yebcvm5KZjgyLvJ4GYWdUnncBRI5BT9DdInnmGx0sQwO+vsnt5KwWaV3026GA/3yWIK48MDiuX0MfBmYdZEcnpCgFPGc8C5Cb0stR4P4D5vaLA1RCK5PIIqtHEB7s8iHgWTDXmJXXwanFIa5t5rvhZmzc9Q== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:CY4PR02MB2743; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2743; 25:EkPdAk/SRtuofN00lAPo28q0O5UTswCXWBp4Y888BQhJyUVLNHRTHyPdkusPvPoLkz/bf0LAeURj8cRleFYpnBpyuAscUlyCg9D7Px8Xko4jbLjXfqkyzCwf5zFqOmxQkjr+chzUkZv1gMxuxNnroAlvual1Z+PXPz+dLXMsabuyzs+M7j09qmvZay228YpTMgBjs0MzrEMqNHpdfhjFby/WL6WB9V61wGSbP5KM18sYoTD6hwcywbfCR5vi3dBw2zWWFfivbAogsc9wWvmZ/gNHuj1WbCggd/WQuxwzSRI661aXyGm02OV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H3BoHIIK31fK09lAzbFSxg7EszbR3J6azbNmnAWqixwjeiHX0bVI6tn9/Ibi+SmZ4oKLPBjStpTgpGEuRgw9YJQ8zochRddRxxw4brvjWQ6o0+4sALGm8EWr0zk0psEsLQfsR55Xtmcx2PPFe0/AUS6hkuknfSYcdpYC+4uYJNzfcfSL1jG4pXdD7kfH 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)(5005006)(8121501046)(13018025)(13016025)(3002001)(10201501046)(6055026); SRVR:CY4PR02MB2743; BCL:0; PCL:0; RULEID:; SRVR:CY4PR02MB2743; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2743; 4:bPBg58LDM/GUs7mkBEJIeHkhZosbwYi0j+wCsOFkdr+e2+12DrShuTD1d1eMwx1HLll/te4jGon0r7I/y/f6JYpqtDO+pMkuUogQ3R+LxE9yJoHb35Rq9yFHxtfCzJLK0uZG2nwZ7aZcP1VxX2D322MCS0y1GTEb9NeCk6pGQwFY6qY1QVOocFZbUkk+eDLU9pn+2VdEHNi24aHQhOWtQ8RrGYx1S1LofI+CkHrzXJOY6COt3s0vkz0qWPp0xJcxd6BjSgEEHEffGgJAA9eBQtN0iZPMGlHaQ3gK6mi4coFIiEgKTJuuao9y0uLw6gUBwrYDvn43eR1PonfmdQd07xiFIHWAZBPeQuc+kGRPgz7Y3AAz5+d1dS5Qzna5nEDy1MSpKnL41wVPv4bH7L+Cdz1P88oCnNGoch7P98ADuisANxQsh+sQnrrei4gcYIXOQgvMTf6jqfYuiJUjRcdBOMLoK5kyDODwCg2lNAnL6PI= X-Forefront-PRVS: 00808B16F3 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjAyTUIyNzQzOzIzOmhrSkZ1QTZhQ3h0QjlqeHh2NHVSRXRtM0RS?= =?utf-8?B?YkhDSHptdWRMMkp1Wm9UZzN0N0tB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jy07VGhFK9IJiwhpQ47Z9z+DMpdLZ0fOxWihi24SOhbDreL1i0Bt7GvPTTiPGBqJm7JQyyeu8yNevgbklZUtyI5TzKxjWGx7tN4Q5VWny3Uica/BT X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2016 00:02:25.1443 (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: CY4PR02MB2743 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Bart Van Assche Cc: 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 182b679..f2c271a 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); }