Message ID | 1e89a7d7-5cae-40b1-ce31-09d630e6f33d@sandisk.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> 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 737ED600CA for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 18 Oct 2016 21:52:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 646452881F for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 18 Oct 2016 21:52:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58F4829769; Tue, 18 Oct 2016 21:52:25 +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 D44772881F for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 18 Oct 2016 21:52:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754868AbcJRVwX (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Tue, 18 Oct 2016 17:52:23 -0400 Received: from mail-dm3nam03on0067.outbound.protection.outlook.com ([104.47.41.67]:40340 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752128AbcJRVwU (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Tue, 18 Oct 2016 17:52:20 -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=hTLZQ2lc/+c7aRLX9DXniPyFwM7Q/XhXJve/dDGnFBk=; b=f/WTr3UIDn7OxEYtebRsDX/s/c8e1hRZIxjhAZNJi9rM1mMY0ndcD8RAkGdTeCfHuxNJf8m5fT5KPtImTS3838Q6MBnEcp+7OI2IA1u8PxWlkYRnP4R/Lzl5jv2irNx5SxAj9Gzs+8zIq1a0wHgjEJwr3Oj4PGr9ByJN7E7yXa8= Received: from BY1PR0201CA0020.namprd02.prod.outlook.com (10.160.191.158) by CY1PR02MB1626.namprd02.prod.outlook.com (10.162.160.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16; Tue, 18 Oct 2016 21:52:17 +0000 Received: from BN1BFFO11FD051.protection.gbl (2a01:111:f400:7c10::1:137) by BY1PR0201CA0020.outlook.office365.com (2a01:111:e400:4814::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16 via Frontend Transport; Tue, 18 Oct 2016 21:52:17 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; lists.infradead.org; dkim=none (message not signed) header.d=none; lists.infradead.org; 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 BN1BFFO11FD051.mail.protection.outlook.com (10.58.145.6) 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:52:16 +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 A3.DD.26959.E0796085; Tue, 18 Oct 2016 14:41:34 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 18 Oct 2016 14:52:14 -0700 X-AuditID: 0ac94369-b97ff7000001694f-67-5806970e8f67 Received: from exp-402881.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 65.B3.03615.B8996085; Tue, 18 Oct 2016 14:52:11 -0700 (PDT) Subject: [PATCH v3 07/11] dm: Fix a race condition related to stopping and starting queues To: Jens Axboe <axboe@fb.com> References: <b39eb0e7-1007-eb63-8e7f-9a7f08508379@sandisk.com> CC: Christoph Hellwig <hch@lst.de>, James Bottomley <jejb@linux.vnet.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, Mike Snitzer <snitzer@redhat.com>, Doug Ledford <dledford@redhat.com>, Keith Busch <keith.busch@intel.com>, Ming Lin <ming.l@ssi.samsung.com>, Laurence Oberman <loberman@redhat.com>, "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>, "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>, "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>, "linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org> From: Bart Van Assche <bart.vanassche@sandisk.com> Message-ID: <1e89a7d7-5cae-40b1-ce31-09d630e6f33d@sandisk.com> Date: Tue, 18 Oct 2016 14:52:11 -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: <b39eb0e7-1007-eb63-8e7f-9a7f08508379@sandisk.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgF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+31X2TzevtzJ6vF5k1wAZxSX TUpqTmZZapG+XQJXxqOfb9kKpkpUvNzQz97A+FKki5GTQ0LAROLY9HdMXYxcHEICCxklJmy8 yQySEBaIkfi04zULiC0iICvxffdrNhBbSMBO4u36nSwgDcwCe1kkOm6fAmtgEzCS+PZ+JlgD L1DRmU/bwGwWAVWJv8ffg9miAhESm77OgaoRlDg58wmQzcHBKWAvcfVAOEiYWUBd4s+8S8wQ trzE9rdzmCcw8s1C0jELSdksJGULGJlXMYrlZuYU56ZnFhga6RUn5qVkFmfrJefnbmKEREXU DsbrE80PMTJxcEo1MC6d3lj5n1W772rxl/Kp3GVmxx8x92l0357nvn72BKPrbNujX31gmppa GR2xrfnwrjdXd4c8NbzNpX70pYx46ZUQ5rffxB767bCsOSe02VLVWFzukollieXmhBsuT0PV zcV0uCbH3Vi11CHBQWyxdp4yf9HmQ6WOT5v29jGI6b06MPH+B5+bb5VYijMSDbWYi4oTAe5b Wrc6AgAA 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)(8676002)(92566002)(65806001)(77096005)(76176999)(356003)(8936002)(65956001)(626004)(65826007)(31696002)(31686004)(586003)(229853001)(97736004)(305945005)(36756003)(81156014)(81166006)(47776003)(230700001)(189998001)(7846002)(69596002)(54356999)(83506001)(2270400002)(33646002)(68736007)(11100500001)(50466002)(110136003)(50986999)(86362001)(64126003)(19580405001)(106466001)(2950100002)(5660300001)(53416004)(6916009)(2906002)(7416002)(19580395003)(23676002)(4001350100001)(87936001)(4326007); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR02MB1626; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD051; 1:SFkcxirpOg74mrx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EVQjtiAeEt4Gq6Eca7bNhK04QcjXxZy0rs0M1Zy4zKrWKOBPFcstS8JablKe1z4EA3gNuk+eUhH9HvT1KlrOw7Yhgri0J4kGCOnHMg0u5vF1vNE50YFRFieuIts+Hf210gpY4HLHrCudgKVJSfeo+e1IUj3WDOjCAFaCCgJAx3aPXwp3jQBHkGdNoAEeKDJ1dh0/I27ZcOPoNbudbprVTapl6F1KAOcQjQijuLRFWBvHLasOScYZvoIFe0dlAdCtgvQTDpms0rFwoHgrBLwTTRxm8KvszB9xfROxOQWk7yLCxl4XJlTPJ9ZvnXOz1NNPXXFmqR1K9zoQldDZxMkJhD0OeKYUTE2 X-Microsoft-Antispam-PRVS: <CY1PR02MB1626BF219B8D64EE429C3F0C81D30@CY1PR02MB1626.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:CY1PR02MB1626; BCL:0; PCL:0; RULEID:; SRVR:CY1PR02MB1626; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1626; 4:Cx2DN6JZ1FHBNIqIHTBR/9HyyNi61tzbUk1sbtKu0vCFP5PGkXCVU7DXcjZy7ZZxbclzha5QMjKu6MwwMjR8kocYJINdJqPRSegbDnrAZgvH09pCTaFKC3Q9l18MJF2vqJ5OPZ4Gi9EZn07kFrtI7Q27oLkK44PASzaN4HRKm5OFN4vnxvjlbtZkDCxloTLuJq8MPqfG+QsEh+Y1zQnWTY344KwWvpx1ocu/WNdsgyHGUEUl9RpPtCL1aGDjhREvVHBqqajk2oxm3Q1cDTQ8zpNc2+p1CaULaD6WTGuxLW+iFbKgjthWP5d6WzH4UwJm2Hz8U8yfydyurh357ATRO4sTTL3qzocZN9GrxgSh3/M+wheuZhmOPYAn/sGPmRLfbhyJxVy8AbtIvvuPOrhkQ7oTZysZyro/odSVo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fAI3vXuStdChjPXRAhHMK31QRMP7cQJEQtVNK9GtsbXPAu9ZavxUk4fb69xhcBel9bb7tD3WFRNSXUmVv/DJGUiANDPtQ68w84HOMXzl+JDrPXC9Pn5uczq1lslp01KZDZqUXgVi5n/cO/XfLO3fKdTMc=; 20:B9SSZvYlcO0Ew08DWYvivJO3TTRK1WkhZpvz4+faOC0t/AVAtKQ3uSy0Bi/FekFlGQoaMvocGnr4gHkCwza9N6nL9O5sTDiZLbMzCAgX9sZGUBbHkZf3qXShTve6aU5u2TCiGh3PT4dr4S4jq+hcAy8ChWgbYM821KRWDbIPJEBa9Dsq0AT5ILkcu+myfqGVLkhVlz/2WxcwipJKesUf50Nk0HxxcT0UWdOIiN56jubMdbX+qPzTDItoA4/CprRI X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2016 21:52:16.1364 (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: CY1PR02MB1626 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
FYI, I wonder how many of the blk_mq_stop_hw_queues do not need
the quiesce call. In the long run it might be better to have
blk_mq_stop_hw_queues to stop an quiesce, and have a
__blk_mq_stop_hw_queues variant to just stop.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c index 9c34606..107ed19 100644 --- a/drivers/md/dm-rq.c +++ b/drivers/md/dm-rq.c @@ -105,6 +105,8 @@ static void dm_mq_stop_queue(struct request_queue *q) /* Avoid that requeuing could restart the queue. */ blk_mq_cancel_requeue_work(q); blk_mq_stop_hw_queues(q); + /* Wait until dm_mq_queue_rq() has finished. */ + blk_mq_quiesce_queue(q); } void dm_stop_queue(struct request_queue *q) @@ -887,17 +889,6 @@ static int dm_mq_queue_rq(struct blk_mq_hw_ctx *hctx, dm_put_live_table(md, srcu_idx); } - /* - * On suspend dm_stop_queue() handles stopping the blk-mq - * request_queue BUT: even though the hw_queues are marked - * BLK_MQ_S_STOPPED at that point there is still a race that - * is allowing block/blk-mq.c to call ->queue_rq against a - * hctx that it really shouldn't. The following check guards - * against this rarity (albeit _not_ race-free). - */ - if (unlikely(blk_mq_hctx_stopped(hctx))) - return BLK_MQ_RQ_QUEUE_BUSY; - if (ti->type->busy && ti->type->busy(ti)) return BLK_MQ_RQ_QUEUE_BUSY;