Message ID | 7c9a22c1-9940-7a8d-a479-c8cc5d274c60@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 1CDA7605EE for <patchwork-linux-rdma@patchwork.kernel.org>; Wed, 23 Nov 2016 00:18:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F9D620700 for <patchwork-linux-rdma@patchwork.kernel.org>; Wed, 23 Nov 2016 00:18:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0326C20747; Wed, 23 Nov 2016 00:18:13 +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 81D26204BA for <patchwork-linux-rdma@patchwork.kernel.org>; Wed, 23 Nov 2016 00:18:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756055AbcKWASJ (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Tue, 22 Nov 2016 19:18:09 -0500 Received: from mail-dm3nam03on0089.outbound.protection.outlook.com ([104.47.41.89]:23401 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751519AbcKWASA (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Tue, 22 Nov 2016 19:18:00 -0500 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=HPfiTrsGvT/iCq1hvq1Tp8zIXneYCwcMI1vj5sllPN8=; b=Agtw0OZSHc9XzSFn0HFLYHM7joVjVELVQMj+NOPChIScL00XJfopi2kWRzi5DT3V7SGR0x36gFDZtyE0bxID3b43o3EqzMMltqa8Vpyl+HZwP7vxKatWAKuATy5p7pwUE88IMXTHffJVRe7AW4KfjNBQbRrTzstT680JALE/KCA= Received: from BY2PR02CA0095.namprd02.prod.outlook.com (10.163.44.149) by DM5PR02MB2859.namprd02.prod.outlook.com (10.175.86.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8; Wed, 23 Nov 2016 00:17:54 +0000 Received: from BL2FFO11FD044.protection.gbl (2a01:111:f400:7c09::124) by BY2PR02CA0095.outlook.office365.com (2a01:111:e400:5261::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8 via Frontend Transport; Wed, 23 Nov 2016 00:17:53 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; 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 BL2FFO11FD044.mail.protection.outlook.com (10.173.161.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.5 via Frontend Transport; Wed, 23 Nov 2016 00:17:52 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:3278; Count:19 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 5E.4B.03811.47ED4385; Tue, 22 Nov 2016 16:10:28 -0800 (PST) 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, 22 Nov 2016 16:17:50 -0800 X-AuditID: 0ac94371-71bff70000000ee3-75-5834de74ca94 Received: from exp-402881.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 24.3D.03661.E20E4385; Tue, 22 Nov 2016 16:17:50 -0800 (PST) Subject: [PATCH 2/2] SRP transport, scsi-mq: Wait for .queue_rq() if necessary To: James Bottomley <jejb@linux.vnet.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com> References: <39d8cb23-0406-e8c3-6e3a-a467ebe41470@sandisk.com> CC: Doug Ledford <dledford@redhat.com>, Christoph Hellwig <hch@lst.de>, "Sagi Grimberg" <sagi@grimberg.me>, Max Gurtovoy <maxg@mellanox.com>, "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>, "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org> From: Bart Van Assche <bart.vanassche@sandisk.com> Message-ID: <7c9a22c1-9940-7a8d-a479-c8cc5d274c60@sandisk.com> Date: Tue, 22 Nov 2016 16:17:50 -0800 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: <39d8cb23-0406-e8c3-6e3a-a467ebe41470@sandisk.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeLIzCtJLcpLzFFi42LhOum8SLfknkmEwdUtFhYvz39gtVi5+iiT xaqJeRbPDvWyWHRf38Fmsfz4PyaL048OsFuse/2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qBpBiZMzn4DZ nAL2EqvW9rBCzFSX+DPvEjOELS+x/e0c5gmMfLOQtMxCUjYLSdkCRuZVjGK5mTnFuemZBYZG esWJeSmZxdl6yfm5mxghAR21g/H6RPNDjEwcnFINjFN2bnv7qf0Z/5dr4uc2pLZ8MZn6v/pb T55rYZZ6wJTn/3ckb37G8njdqy3xby48+nJL7WFM4Pwv0ckhAV8P2jXwqD/52ZDO8Mj4rb4p W5Z4N1v7Ko8XN1/Ovul3qCrihnA+q+PKiLdBddUbV66uOufkcbt3Xd253dHzlt7fd1KjbFr6 hc/X89SVWIozEg21mIuKEwESCVreGAIAAA== X-IncomingHeaderCount: 19 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)(199003)(189002)(33646002)(356003)(86362001)(77096005)(53416004)(31686004)(81156014)(50466002)(2906002)(81166006)(23676002)(189998001)(47776003)(64126003)(65956001)(7846002)(31696002)(69596002)(8676002)(65806001)(305945005)(92566002)(8936002)(626004)(65826007)(4326007)(83506001)(230700001)(2270400002)(36756003)(68736007)(76176999)(54356999)(106466001)(4001350100001)(38730400001)(5660300001)(2950100002)(50986999)(97736004)(5001770100001)(142923001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB2859; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD044; 1:L8OTwhbm5vgO0Ud7qDDSDudd8QcnzEdfBDe8DNpZaq0KGoQxJN/8T6UGYgfXnp3AFnloflcKkE0/mwYWz36NLi59T8GJyH49F9TJ1H1ULtxJKN2yDyGwI2QucDgaUO4FUcjEEWYO0dcF5pqX62NEYIIPYsD+LM/dB7V0hl/PvbcSTTcTJFweEHSIsbXyzQvKQG9ivUIwHWUz9M+1Iugyby/PToE7r3F2UJoYAtAc8x3+8NMRhMxbL+dlWYZ6GVRU1/J/aIqQjhvhv8Y9PlybMh4RtNm9/aaYkbNeojOKeJmBEzI9mkU4X2aS1QUK2m+ZfkXG0Av6HDsSDRhpp43t6ytAoQ70CC2NhK98rlNiJvhqCzVE5HpPYG2C1KefZ4y9mpM3lAEI6CBTZAzcQw7Q/51ALProGa3PHpZk1N36gzbbpP+AbFmKr45jjHIrOGvDUqVcLCNdoTeiy3gEqI7M8KBCBwLsaupClBcA/wKkXDcnhDcPdJnwDiVCtK/CFpKF9tCMIlBkOrRuV49+Jt/Fcf91WLiYrOna22T1Ar1lLr6l3h0JaAdw1aHqsEmY4/BX X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2859; 2:zbxz9gJ24miWIEF5H2unQ51ZYetqeZ3Jbw8UWxB81862wiURLhi179SSQoiphfJrK4EsMEu/XdPBy+kPjpyfYwjVehaSXc/87p59v7QGlp4mQYDXy3c6V1IOMedpCnQoOK3r9RDXyZ8rgPd8rfEUr135LSARLVse3PpBMswG8G0=; 3:BEhLSW7HbL9GwAtx+yv/W2rpUEbwaRKaAZd6/tUDmSN13nE1TbAhDvHyp4b11YKkblz9dtQgsmV6sXLVxbvEk5dSUnJBpNKMRmzTvwVcPu9oUU8BLJCL6XTNomXFQaTVSH+T1Eayh4lpCWDhhodJepEHgBN821FmlhM1EgHFGTnUFNrkqla36McQblXnN0g7tSQMg/q3W0D9PfpjeRw1IAgso2MOklcnm6zfM7Ckk5psH8ehWhxWA8LaUr5LD8R3BmjqCsqaoeso4bqbiYOH+lUnIAw6+ORrOKeCzDPI9BA= X-MS-Office365-Filtering-Correlation-Id: 0d98d144-d75b-47ae-9485-08d413362aab X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:DM5PR02MB2859; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2859; 25:+HXmvPQlfvMgf9lcHed4B6tpJV9IdAICMD80RLP1SC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46u8/vKZjd7ceUUx61U3RrdvFSCEGKf71v8ORoX5RtE2sTLzT1WQ==; 20:YoTmdPgdUrAHRj70JXY+pLgnWAz/GDg7Tzps96uhLvQi1E4E5F0Dsy1OTe0p1t/fSlUrOIGqlouwyI4B6V9xovsftMOH38Uv0Cb9ZlIllR5MxCCzPuvfuL1hsVhJJodoz/cklNjMMBw+X9CNC7tjEJCXp5fkJFbGGEmq9m++B5KpfBZIrTGjQT9qPU97ex+GIDjNQu5eA9U2nOxrg/SVJ2yrFjMzv1ty8/iBf2U4E8vWJQ7LdRFVaC4W58Tq33p7fonhBCX62TlDsBjpwqLofCyvqGJX+M/nUQUFZMSGa5ro1yZD2dzllnA3OTXldnGEDIir89bKfK6xWdMH7LjQWvbzNfyxvqwxMB1Wues6IIQrdxBa7CuqVVwiPqLPeYJbw7ovHYwDWbDY7xAuRztF//RXDDjTtHyamgudBQCxO32FiuKoxBmn7DxCY/CKNSpJshcXsugYF/7hXeMx0ubhu8Yt8iUBKW1PqzPif3P9+SHpRax0JTZHmRqLaLBSu8OK X-Microsoft-Antispam-PRVS: <DM5PR02MB2859EBCFFDA3A9C1985DF09881B70@DM5PR02MB2859.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(104084551191319)(146099531331640)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6060326)(6040307)(6045199)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6061324)(6041248); SRVR:DM5PR02MB2859; BCL:0; PCL:0; RULEID:; SRVR:DM5PR02MB2859; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2859; 4:kSd0pH03U80bwS4oIIpa5SMx0V1wA10jWDiKbWCnY/BMgchurUur7tPA4JHU+Q2X69ZvPFy8t7MjgGDxA+x37hUKiK45Jqh3jDa74HpCbCMgOMFyjAynSvKLfKXNMjuM7tCKUAQ1OX0ur/NwXShKuDDRvxtdeS8jg9mfQBxqvpJ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ics: 1; DM5PR02MB2859; 7:GBidDYf+hZ5saAv1pd5JCVEzBEANTp5fHtRwpqVzet0kuS2XkWLXzG0TViFMBWuAigYvxtYRhYfefCX3kPUnDFFNrTrNhg2Q+0Hc4yPrHplhSCtT+HuEOhgzt2zUwUxIM4VBzHOXZpklobnGADBJp3hhTpmVGGg7OnoCdIVoDb9egfV0TnLzl5yJzQZY5Dg0udDJmuVwhcqVvNbxS9eAYJfWiQ9E6pNG8UrgCq99nkN8fUuttg+qZ0dXwZQ/ITHg8isIlE/DnN77he/Q9XyYhVOOivF0OUTkd4lmJocs044YOT6Ld6xr274DP3Z1cO7uqsWxuanDp6VhFIHWU4vEI5GEmtJIhP5iPXrTfdmzRzQ=; 20:B5RXp1KX9bh+wy0zHpMZ6vSAnvzs9vqVX9yNURkWTbYQ1li6GEP5JrmEoTl2IFGnFWhALsAudOSe0lKpUAnXD28q6HQaAzb5tBF1FaEJr440g3h60J6cuUz5egW4B5RKeuucipY85gIfzkBKN+CTiSIvGLYM2M4JT73Ah5jb90KjDcLzomH07y1i6aL1uLrVvk8Sc7+zwg4iA+WMrCziFYZt6FHK6QugTTT7PVjSBxQuoNAcfC9LWYDKVdOHZNgL X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2016 00:17:52.3799 (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: DM5PR02MB2859 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 |
On 11/23/2016 01:17 AM, Bart Van Assche wrote: > Ensure that if scsi-mq is enabled that scsi_internal_device_block() > waits until ongoing shost->hostt->queuecommand() calls have finished. > > Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> > Reviewed-by: Sagi Grimberg <sagi@grimberg.me> > Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> > Cc: James Bottomley <jejb@linux.vnet.ibm.com> > Cc: Christoph Hellwig <hch@lst.de> > Cc: Doug Ledford <dledford@redhat.com> > --- > drivers/scsi/scsi_lib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c > index 84c9e61..11d082d 100644 > --- a/drivers/scsi/scsi_lib.c > +++ b/drivers/scsi/scsi_lib.c > @@ -2872,7 +2872,7 @@ scsi_internal_device_block(struct scsi_device *sdev) > * request queue. > */ > if (q->mq_ops) { > - blk_mq_stop_hw_queues(q); > + blk_mq_quiesce_queue(q); > } else { > spin_lock_irqsave(q->queue_lock, flags); > blk_stop_queue(q); > Hello Martin, It seems like patch 1/2 of this series is already present in Linus' tree but patch 2/2 not yet? Can you queue this patch for the next pull request that will be sent to Linus? Thanks, Bart. -- 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
>>>>> "Bart" == Bart Van Assche <bart.vanassche@gmail.com> writes:
Bart> It seems like patch 1/2 of this series is already present in
Bart> Linus' tree but patch 2/2 not yet? Can you queue this patch for
Bart> the next pull request that will be sent to Linus?
Applied to 4.10/scsi-fixes.
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 84c9e61..11d082d 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -2872,7 +2872,7 @@ scsi_internal_device_block(struct scsi_device *sdev) * request queue. */ if (q->mq_ops) { - blk_mq_stop_hw_queues(q); + blk_mq_quiesce_queue(q); } else { spin_lock_irqsave(q->queue_lock, flags); blk_stop_queue(q);