From patchwork Tue Oct 18 21:51:33 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: 9383133 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 D7097600CA for ; Tue, 18 Oct 2016 21:51:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8E472881F for ; Tue, 18 Oct 2016 21:51:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD0F129769; Tue, 18 Oct 2016 21:51:48 +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 47F692896D for ; Tue, 18 Oct 2016 21:51:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755942AbcJRVvp (ORCPT ); Tue, 18 Oct 2016 17:51:45 -0400 Received: from mail-bl2nam02on0065.outbound.protection.outlook.com ([104.47.38.65]:49440 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754159AbcJRVvk (ORCPT ); Tue, 18 Oct 2016 17:51:40 -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=fCiJXrCvtPTkS7gf4TkJkyzuM/6n565kAWqxC85aIqA=; b=a96nYmcURomHIH0BCMZWgdvO9LYeolahYypFPpMOuHLiPAJbWzoNPNO7ibMMX2mEY09Yyff8kgycNZoq3dso/tsAbtQKgwRfn06VeFQZVVUNsK+vD/EfgKypX+ckfZTC3H9sJ7d3lsqCoR5ed3KirMEMigD0Uzn7RfvKvogJWSI= Received: from BY2PR02CA0014.namprd02.prod.outlook.com (10.242.32.14) by SN1PR0201MB1917.namprd02.prod.outlook.com (10.163.76.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.659.11; Tue, 18 Oct 2016 21:51:35 +0000 Received: from BY2FFO11OLC005.protection.gbl (2a01:111:f400:7c0c::185) by BY2PR02CA0014.outlook.office365.com (2a01:111:e400:2c2a::14) 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; Tue, 18 Oct 2016 21:51:35 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) 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.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 BY2FFO11OLC005.mail.protection.outlook.com (10.1.14.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.7 via Frontend Transport; Tue, 18 Oct 2016 21:51:35 +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 D1.DD.26959.5E696085; Tue, 18 Oct 2016 14:40:54 -0700 (PDT) Received: from milsmgip12.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; Tue, 18 Oct 2016 14:51:34 -0700 X-AuditID: 0ac94369-babff7000001694f-5c-580696e54fcd Received: from exp-402881.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 33.B3.03615.56996085; Tue, 18 Oct 2016 14:51:34 -0700 (PDT) Subject: [PATCH v3 06/11] 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 Lin , 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: Tue, 18 Oct 2016 14:51:33 -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+NgFlrPIsWRmVeSWpSXmKPExsXCddJ5ke6zaWwRBpfvM1r833OMzeLl+Q+s FitXH2WyWDUxz+Le0S9MFntvaVvMX/aU3eLZoV4Wi+7rO9gszn94xWSx/Pg/Jov23g5mi7aN XxkdeD0mNr9j91i85yWTx4NDm1k8Ni+p99h9s4HN4+PTWywe7/ddZfN4+3Inq8fnTXIBnFFc NimpOZllqUX6dglcGUd/XmAquMFbceDFCeYGxrPcXYycHBICJhKb3j9m6WLk4hASWMok0bnj EzuEs41R4v+J68wwVQ9ndjFBJBYzSqz7dBGoioNDWCBR4mmfCkiNiICsxPfdr9lAbCEBO4m3 63eCTWUW2Msi8fDyLVaQBJuAkcS39zNZQGxeoKK2ibvAbBYBVYnObxeYQGxRgQiJTV/nQNUI Spyc+YQFZBengL3E1QPhICazgKbE+l36IBXMAvIS29/OYQZZJS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mllud nyJc7WL6tvpl4EeH701lx3krS9e3bXzOmsxbdevd2jvXGjRmsinNiS1ZrcRSnJFoqMVcVJwI APm8RxU5AgAA 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)(87936001)(81166006)(229853001)(7846002)(50466002)(110136003)(83506001)(64126003)(4326007)(65806001)(92566002)(86362001)(23676002)(65826007)(305945005)(2950100002)(2906002)(6916009)(11100500001)(2270400002)(50986999)(68736007)(4001350100001)(626004)(5660300001)(356003)(586003)(31696002)(97736004)(7416002)(65956001)(53416004)(47776003)(8676002)(77096005)(106466001)(19580395003)(54356999)(81156014)(31686004)(19580405001)(69596002)(230700001)(189998001)(33646002)(8936002)(76176999)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0201MB1917; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC005; 1:QqZdD9hVGn6C7qMlz3epDdRpM218fOrlt4EbEy2K4SzTV3+RaMaDYfuxBGOVmMD6fIqJPtlLDS9pUpU5M0W6egRrS6N7r2IIuF+GzLp/hib3IVg3LwIsSpmUB+xQBKc5+3eng5fq7XNEo4c0r1g/i8cbagNOQaW05InMIMic7vk9vb5v40Dt7jJg561aGe4+70HvQcqzE1DjHo4U5EVuJ8MYEu4bdtC4F9aFt01VEi3MlwBaBnRj9MdC2dydkqSWNmOBbLug7HoVXaVKHPKxm0Xol8hb0oG0nXuuo6P70pdtNhVweXLEiKXTMFmTGYBUNjxx3fJZ+lyxNBv9upd4PzoTGazzPtLck29t2PxNFzID1gdKQ+AYEUAlvU3ossXezH0sxqxnm3GAn1WxcVahZ09QYQcN7wv4TlqgUNhFre5rZQAAso9rsaW7fsqVxE5y7rnkh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CkH855RMGJEnuZfHaANm7E2FaVsKxweQBgDPjloWtB+BhW5FZUywnhYrJNiJLQCcCIygiKhBwNx8ZYb23/ IBosvx6vwkZGUeEy/11lB/rWm1tmpU2X0bQ X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:SN1PR0201MB1917; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1917; 31:RJHg/vwkmz7FuZEo60yVcno19E/R1zcQX18vCW0Jfhoe4bU+rvI286LaEIcEwvM99eQq9/blvyGC0aHtLDjU8pHUFofthY2mMOhawgnTNK9DFB6Iu8XPAaIbK3fB9Q/rLNJ2mqdIq6u8YJZZLhXnYzoBzdSx0PKO6pwqFwMMW2kRPmXfR6yxScjaZxHfhrsJ/HBCtoWoaw9Y9G3m0jSUQ7uNpMAA9KtEYfc/nrSqGNk7P8z0AGlmlvsn4jQKO9FJ; 20:sgF4pFSXS7k38v5j5FvakQP/l3QHdTkImxlQRxO5ujwqUAJfjNjIvSs1jVUN5QKLgpjuYUJiJamPsdJkHVUTn8Yck+D6ukt4PKFJw+/4Ly74dpES9vrRuCPqXuwHL5JCEOGbfhrhXAlB0696G3a2wtkrjvKqcGkmSZbSy7RsjbAN3bJY0I4RK8FsNzIdgJe56eZTlxA4IgL7Fh3HYKFHSqbG8jmYYPIGo54zorldkaLNlrW3cZmdwQ/TxvL5h0nBdUC8uipfvUt32Cj8BbJ3psTOffsrqt+CiO4FiCwW+lmCrAEHnLW8U1NVKLIp3ch6fiX1ZOf0Uh0PggxTAq179rGKffRTIK7QznyhLYWhTFjYAGT5w0k7++yQl/iqgg1UcQVx7Qp0ZLJWSe2LcbFC+KERw4EfA/RkRoOkYi+o9FNv9TF4QBPWRQC1Ei1ej4JMr39vQvwmk20N2SPjsmGhSraoojOxDu5pUWcPAaPJDMx9QWMEcuQz11GrvMUGmt71 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)(5005006)(13018025)(8121501046)(10201501046)(3002001)(6055026); SRVR:SN1PR0201MB1917; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0201MB1917; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1917; 4:jxkix/Eg0Gnua9/FyYMv+BxyPpZ8DYGfBiUiwEirplCBUqN12YRb5QyUiRsB9bMWrdMFf8SmcWpTLcmY12oySCH3hHJrZf/7Vz2blxPg9KEW0ei2LWSQhbWwuQlDSbAY8Hwush6s7aGsduwsfHojvgi66UO1k8QU0ZtFQU0hR8Nq+nCFsFpOgBxy2cVHqdAai5AhECLWWn2FOHoM5XViD7nHt2fSWcgf195Xnz7OJFzgLrgNTICcNy1T3apA7EihhIjzHyj8bSTBxkkBeC8PdDrK3ry9jfWn0bZS5ZHneyPKBuYz2jrWvf9r8KWlE5Qn7wQNcQFNYix4X7PldAnoVAHwuqtLHekH13oqam1aFKa/llBk9bWQLCmVueKDUMPU7LtzARXAf2zweHRyWjpW/aW0Eslc5N1KCoum5xSM78RMYjghg5VN78XQSsb/do2isjjiG3YPkNnZdV6WBNZtXcTyvvDE4J4SXuvKZXigWKAsewjmZGCZgBSxWuDnN8wc X-Forefront-PRVS: 00997889E7 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjAyMDFNQjE5MTc7MjM6Nzc3OWZKZVBocUNPcWN0c2k3MHhaWkti?= =?utf-8?B?NFoyalJLZzl1MytxOEJGNFkxNTNGbmRKdXZ5ZHpCTVN5eHRBMjgxNjdOVkRM?= =?utf-8?B?TlpHZHc4M0JPVnVLY0RzVkZqbExOMGJSTzdpZDJ6bnkyRk04Y0c2Mnd4Z1FZ?= =?utf-8?B?a084a1VoYjgwb0RBNVVQRGRYcVVsQktTbWg2cnlqRS81U1d1TzR6dVdUSmhh?= =?utf-8?B?NVZTUG5YU1hyZEtpWVJGakNieTBLa0VGVTJENFRYS2JmeXp2RUd0cl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8LD7cQqqivfsjwt6EGYKpfaH8ZFkYwdrcpqZS++WiSO3o+Mxq1DR2fEt28=; 5:PoX8sLuHHcXGUefrI7UvSHuxQZw2uPPWOAUqspw2Wl5FCJK+xjgOnkO9bpn6ADeFdrb9w+3P88TGpGW1cj3yorcVWIL6ko2fV2L4dNEcRpHJ0rhdWUI3MmLwqNg8zUPW6N07gx9BGvPgR6s1FIX/7g==; 24:pHxJ4RlSzacfcgtZ6EoBqRxd+GH4ScIexm7088YBqg0Iso6DRSQaHiTp4qIqA+GDTXWmdnYDtr4Dhcgu1hzdgcLHcmZBD+lCmsvJnwF1VXk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1917; 7:3x1GC7CuWg3ebn2M75Vz/wpoUnV3rfnvfGqgIFhY/sApUA2cK/MW4csFz3N+EHncSeM51VySKWRVVywQHuFuRV9UrsqsQcFtgVkZ5VDv0suBYrH6MR475ag7MAs+lan7uSOtIcI6/YzY1vN4uHdWX+8oqLceiSmf77qmwoF53jL2L3sDIIRstCs9NDmtSl1/tn7+3kapEiLmkC2hP+wZ0il6fPnEawoeNLKl6SIdNLVpPrPVpcKN7chentUDeIX43lopFirrkscE27xTss1xTCrMurPir30pg01kTE3/FU4LxlpbnL0RNBiWIsq1sn1y2hEO/keRwJayPhATdjJydtR3GIMVG/YhNWtUoF5B8yA=; 20:ONZllOifKsOezbKagUQg8sgij50Kba2muL4xfSvLVGXPjBH8YWYy+cFSLDDoZwBsDKOLGcbL8jPPueaOV6/naVms621XSEgI65GTmqsjOWlRs4uESvirytJFNhBd5EN39Thf38KqG7JDIjR8ezDt3Z1GlrjGRGdJ72Lcz/f9OgFiB4IpfbPnUUlp1OVlEMTnC27GrBE7fO/zK+APo97Jlvv0RuBk3zn3u/6DhhYETStXnOhSk4bWZTpvb1g08w/a X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2016 21:51:35.2447 (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: SN1PR0201MB1917 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 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. Signed-off-by: Bart Van Assche Cc: Mike Snitzer Reviewed-by: Christoph Hellwig --- 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 d5cec26..9c34606 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); }