From patchwork Sat Oct 29 00:22:00 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: 9402927 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 940336022E for ; Sat, 29 Oct 2016 00:22:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 826782A8A8 for ; Sat, 29 Oct 2016 00:22:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76DBC2A8DE; Sat, 29 Oct 2016 00:22:09 +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 110792A8A8 for ; Sat, 29 Oct 2016 00:22:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965206AbcJ2AWH (ORCPT ); Fri, 28 Oct 2016 20:22:07 -0400 Received: from mail-by2nam01on0055.outbound.protection.outlook.com ([104.47.34.55]:28736 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964933AbcJ2AWE (ORCPT ); Fri, 28 Oct 2016 20:22:04 -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=cJpTUDcUuSkzOR+ASoFivQqDhIgQtrV0cZw1GWNUa+g=; b=KzWEPkXwp8a+z41k+jOKzrZous0W+RnD6Ii7md7YRN+wJpS28CKP3ybcL8nN5zjQ7rJxlJZDnxl0CkVIVItXfS27fHcAFmR2qNlzhoziqKth1c/YU6dHTlJnHa/d3MIk+35zTU2vWPxALk6t01hUtLFC1EmE4LkXiwp4EXdQFrI= Received: from BN6PR02CA0067.namprd02.prod.outlook.com (10.175.94.157) by BL2PR02MB257.namprd02.prod.outlook.com (10.141.89.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Sat, 29 Oct 2016 00:22:01 +0000 Received: from BY2FFO11FD044.protection.gbl (2a01:111:f400:7c0c::120) by BN6PR02CA0067.outlook.office365.com (2603:10b6:404:f9::29) 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; Sat, 29 Oct 2016 00:22:01 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) 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.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 BY2FFO11FD044.mail.protection.outlook.com (10.1.14.229) 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; Sat, 29 Oct 2016 00:22:01 +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 A1.3F.26959.119E3185; Fri, 28 Oct 2016 17:10:57 -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; Fri, 28 Oct 2016 17:22:00 -0700 X-AuditID: 0ac94369-b97ff7000001694f-37-5813e911eeb8 Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id D4.4B.03615.8ABE3185; Fri, 28 Oct 2016 17:22:00 -0700 (PDT) Subject: [PATCH v5 09/14] dm: Use BLK_MQ_S_STOPPED instead of QUEUE_FLAG_STOPPED in blk-mq code To: Jens Axboe References: <7460e8b2-2cfd-c0d5-7ae7-7f662d89dad3@sandisk.com> CC: Christoph Hellwig , James Bottomley , "Martin K. Petersen" , Mike Snitzer , Doug Ledford , Keith Busch , Ming Lei , "Konrad Rzeszutek Wilk" , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , 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: <00f9e739-6331-9a16-95d2-03b0d73f8ab1@sandisk.com> Date: Fri, 28 Oct 2016 17:22:00 -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: <7460e8b2-2cfd-c0d5-7ae7-7f662d89dad3@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLIsWRmVeSWpSXmKPExsXCddJ5ka7gS+EIg3Wb1Sz+7znGZvHy/AdW i5WrjzJZrJqYZ3Hv6Bcmi2WLnzJa7L2lbTF/2VN2i2eHelksuq/vYLM4/+EVk8Xy4/+YLGac X8xq0bbxK6PF+x/X2R34PV5PnsDoMbH5HbvHzll32T0W73nJ5PHg0GYWj81L6j1232xg8/j4 9BaLx/t9V9k8Pm+SC+CK4rJJSc3JLEst0rdL4MrY/HMbU8Finor5f4IaGPdxdTFyckgImEic X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xmBrGZBdQl/sy7BGXLS2x/O4d5AiPfLCQts5CUzUJStoCReRWjWG5mTnFuemaBoZFe cWJeSmZxtl5yfu4mRnDEcEbtYLw+0fwQIxMHp1QD49ym9YV1l/IW5czeleAdWeb0virqtcbp L7vYmeYHSM2bI+32N+/utUDR5H7tgtDACakGXxRSWLf03vF4zXjv3jVri3A53So+jeaHJgaM p75HNvyNyVifssgoMeXJWgebu+uuvfeY8Wd/oOBF1Xq919dPtbz1L+ibOV9kys9nH/xWz52V ntF/RomlOCPRUIu5qDgRAEHjCiBIAgAA 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)(3190300001)(199003)(189002)(106466001)(53416004)(8936002)(86362001)(356003)(87936001)(92566002)(23676002)(31686004)(68736007)(33646002)(19580395003)(19580405001)(81166006)(81156014)(83506001)(586003)(8676002)(7416002)(77096005)(8666005)(305945005)(11100500001)(31696002)(50466002)(2270400002)(7846002)(5660300001)(65826007)(64126003)(626004)(6916009)(50986999)(2950100002)(69596002)(4001350100001)(2906002)(65806001)(36756003)(229853001)(47776003)(230700001)(76176999)(65956001)(54356999)(110136003)(4326007)(189998001)(97736004)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR02MB257; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD044; 1:8nDPgLPhl1sS8ok5cVHGj6J0tTolNbQk2ibaFlQDx5/L4FwQdM5AwPQHZdYt3uEZHp2/eWq3qg5Bi71q3o6m+7fow893Pa2kXfLfvhhWFmsRag/3Y5MqIe0CV7+m0gi9mQdg+RLV0TUwoQxVtxrNbnN9ygYWwLJ4D2YLK/Y2UZvSElwbmvsL+AZoxrAHMB7dRSAeze3YmQWaxlXs4x9ik9kwaQyifryfqRkmZ1MjsiW3MPtsg2UzryDpwW6Vov5obDDttQCl/V2GIB/l0iC/1ZMnKsMlJngYzGoulbmsyPJc2UrPPlZEYMlAXxj8fv0jer2784B5kpD8p7FHqJxKvatzeerpkDNM01NJjkDyMFit46CuJXt6G+eXoiqW1vI0EvHZKm3tRYRyTWKymN2Dz3x8mt8fMCImlNbOSTGUTBPiqK1U9L6MgAotwS7iLhKUuhpJa1gxlATSl6dgzCVKU1k2g23hm3Fz2Ao4uGeMRBayqTM6XMp9OEpxOmge1HdNal6kJFGIi+TxScD7jCBxrPCIIVzS9b83yV+1dlqsXor1mfhlwlFin8MpPC+UfCtJbUbYiMe+Hwdz6+k2o9aIpXY23d+Qu0+1GW5JZf44TZA= X-MS-Office365-Filtering-Correlation-Id: c1e5d5df-3bfc-442f-dd35-08d3ff919a32 X-Microsoft-Exchange-Diagnostics: 1; BL2PR02MB257; 2:0nRsxiiS8OTXoY/OcjXfT9515Chvyzkik6Bp+5Ye1OUkBTMuhrKZ6i17QIbwTniwnujV3wATpytvmWpHbslsaoVUznTRfk2QSwNgVwXLToBHkTsfGluq4z9+RT1PsRApOGnCRqNB7dGX0MrT9ES+jdoJPmtTn8cyPo09DYYPHK4BiL16xPsrblpq733zzm6Hek14s4PNyNjIJx9vCpI9aw==; 3:PMsEuXrBCR6iBulDM0So2+p0QctF4Tl/9AYXDVJm0VWi3Aemel/zumMYaapiPRwoj4zqBcmwM/Kdy0Rl0doxBO4BRvXFOHURCJMnF96cwkPN0YgJ6M64IH0NcYcX+KtgfF/MxmFnMG/Zmb9AufvABDK/KDwWm7sh+8YG++B9YSwawBkAR1yXIRfoYwPlbgT3MmQm+wXNZjfQq2D2hyYz4vj78jKrasIINeDTbxv4ZegqmTHpJhAS1sEqW153l4641dgI9rQXgEn3I77D6rmqkl9UqELBCLrZuKGEdMOB4fs= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:BL2PR02MB257; X-Microsoft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WoTPnZ2mAxMhusP1wRdv2tBckFWROnoD7bbgIUV2/a4+Afe1uPEnltGjNYpA3AvecPfRvRuP+75fqHN0zRpx5w==; 20:k61WMXHiqrunk0b7btnWrnze3+vz/jZMcHc5jo1VVhXf9d2uTK4WAtfG19nJa7UFA7DPJCs5y7hErYrgef2S4oWNjpN8QLjjmx5J0C36NGxnQYXnszGfa4EYrAazBoN1QmJmFVorPfDzJx97NRHBQSs4NBhYOUVvi840Kdulg9Kl+3w6AvDVG2Hf7kPb/7wlGv0z7E8GPufNfGwMPzJ7iEAuHx81u1nIVvSjZMzO3TpyRNk3xajNj7WBe0UKkt9Ep6M8N1Fycc2kvdG+O8iZR/yzniRdjAndIZ0U63ASiO8TnKwu2/0FXqYNFO98x/tGyxJVFmrt0FVyRhwO+f439gc2xLJelLJ8sphpsp5yNdt7UnpF+X9fZ/oFW1D7TgNET+SKO74R1F0GV8rnSG41ANWaOPPthv1aDR/cyobt6DQJEXusHBhBsioB0sZJWaqkF729mG1F0lflRwoiqm2hXvdHZufGgiprXCjU3lWCewu+BjnESNwCft7nTt4Zg3CQ 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)(8121501046)(13016025)(13018025)(5005006)(3002001)(10201501046)(6055026); SRVR:BL2PR02MB257; BCL:0; PCL:0; RULEID:; SRVR:BL2PR02MB257; X-Microsoft-Exchange-Diagnostics: 1; BL2PR02MB257; 4:DgmMrjjc677SNjORmQRxvxTMzmLLuDNr+3ns4GoqFZfpCJCOlJkA3tZYEIQssd6FkTLm0xKsd6FYPLm2Xkm6Cg++gnALZVgV9D0M2YjQhMW1nc1S5WnejbNz+qXkO9GcWIFy7Ctf116bV8MxRY+PIqtzqLE/yrUO9Ersj+h40JjfFTeiHdayZec+xjR58Fy+5BG2WeUsRW3lPDIc+HwAdaH+AVq2HIsA/ROA3D+hdH7gvKSZ42+1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1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL2PR02MB257; 7:HaMFGL/RXIai+dDwoBRbLkB2m20UOzEvWqt0Fw0B+vsBK+vB/pDBpLOsVGEer9JG7b6a0feM7UgoQLptyeFzF3lxxLAXiz+zZmfDSygSSH27wr4aNqbh4vr8gih6C5ygDIeW4e2Xrx576IjuX2Ch2GrjIRKVL5N38xWMyVmDgJjekHo8WHHlE4siWehinuSKwT+zUvKF74OjD5ktUCYaX4h5H9BScfrSiuicHG2I/6tMi8OTVhv2uBnJOYE+6K3ODLsnHOcEtEgKkzPff91ThdqaSjZE+Vc1puGo4xXXPXiQ7nmz7gvy6DTehP0ExW7fkSrhGpi2ZYEh39D7kBxori9/HF6FkqkVproeY1NkGEU=; 20:4GncPKBJj7rkkt/0LReTQ//gb01P0sHtL4g/T+JwsToMwZsHDLFXhsqI/5g1A/FhStaaYu4hSNUF0iq8bubK0+qErLiaWIArW7jP7+r72k85D2V0G0z4nAn38B2xonFHdTQSVUQdjipUHSarvjl3PcO0C/OMfvsSettrrdLpSprO51idd0FUTw+RWNy+dm7bGrY90R4ZMUqD9yUjoC8UQKnc6fKfF/unT+B5gmGIsZmItU1xjNZFO5fNtki0Ns6Z X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2016 00:22:01.0333 (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: BL2PR02MB257 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 Acked-by: Mike Snitzer Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Reviewed-by: Johannes Thumshirn --- drivers/md/dm-rq.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c index 4b62e74..0103031 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); blk_mq_stop_hw_queues(q); }