Message ID | 32accadb-3ed3-cd5d-e92f-655f8f3cb9bc@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 6A6C46022E for <patchwork-linux-rdma@patchwork.kernel.org>; Sat, 29 Oct 2016 00:23:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 586852A8A8 for <patchwork-linux-rdma@patchwork.kernel.org>; Sat, 29 Oct 2016 00:23:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CCD62A8DE; Sat, 29 Oct 2016 00:23: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=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, URIBL_BLACK 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 B906D2A8A8 for <patchwork-linux-rdma@patchwork.kernel.org>; Sat, 29 Oct 2016 00:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756189AbcJ2AXH (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Fri, 28 Oct 2016 20:23:07 -0400 Received: from mail-cys01nam02on0064.outbound.protection.outlook.com ([104.47.37.64]:48832 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752423AbcJ2AXF (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Fri, 28 Oct 2016 20:23:05 -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=JG1rQ8CVj6wy/D/9h4LCN9Iyu3pyG8wdcmE5Q0AoM9c=; b=mw0xZw6fCQfYpUd3xPGDcq9orK+SlKIe2xWNGKDIgjPJG8F700F5wN4DhXMbXBei8J+XMgkOOyk9CfMHhFRTRHXLH8fRrRm92lNokknH6jVK1H3dbyS3pityKG02dijKb6Jr832yQprZCR12lSUZINZ9S0MeAH9MaFNmdsP7/MM= Received: from CY1PR0201CA0029.namprd02.prod.outlook.com (10.163.30.167) by CY1PR02MB1167.namprd02.prod.outlook.com (10.163.15.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.12; Sat, 29 Oct 2016 00:23:03 +0000 Received: from BL2FFO11FD007.protection.gbl (2a01:111:f400:7c09::121) by CY1PR0201CA0029.outlook.office365.com (2a01:111:e400:58b9::39) 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:23:03 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; oracle.com; dkim=none (message not signed) header.d=none;oracle.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 BL2FFO11FD007.mail.protection.outlook.com (10.173.161.3) 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:23: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 08.3F.26959.D49E3185; Fri, 28 Oct 2016 17:11:57 -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; Fri, 28 Oct 2016 17:23:00 -0700 X-AuditID: 0ac94369-b97ff7000001694f-56-5813e94daebd Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id FB.4B.03615.4EBE3185; Fri, 28 Oct 2016 17:23:00 -0700 (PDT) Subject: [PATCH v5 12/14] SRP transport, scsi-mq: Wait for .queue_rq() if necessary To: Jens Axboe <axboe@fb.com> References: <7460e8b2-2cfd-c0d5-7ae7-7f662d89dad3@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 Lei <tom.leiming@gmail.com>, "Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>, =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <roger.pau@citrix.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: <32accadb-3ed3-cd5d-e92f-655f8f3cb9bc@sandisk.com> Date: Fri, 28 Oct 2016 17:23: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> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsXCddJ5ka7vS+EIgwV3ZCz+7znGZvHy/AdW i5WrjzJZrJqYZ3Hv6Bcmi2WLnzJa7L2lbTF/2VN2i2eHelksuq/vYLM4/+EVk8Xy4/+YLGac X8xq0bbxK6PF+x/X2R34PV5PnsDoMbH5HbvHzll32T0W73nJ5PHg0GYWj81L6j1232xg8/j4 9BaLx/t9V9k8Pm+SC+CK4rJJSc3JLEst0rdL4Mr42b+FuWAte0VL/y62Bsa5bF2MnBwSAiYS C9ftZO9i5OIQEljKJDH5+HMmCGcbo8Tq5oPsMFXTHyxhhqpilJh25xwLSEJYIFTi3snvYEUi ArIS33e/BhrLAVRkJ7H8ZCRIPbPAclaJV1dWgtWzCRhJfHs/kwWkhheoZvY2YZAwi4CqxNl7 O8EuEhWIkNj0dQ5YOa+AoMTJmU/AbE4Be4mVSxYzg7QyC2hKrN+lDxJmFpCX2P52DthpEgIr 2CRWr7nEDJIQElCXOLlkPtMERuFZSEbNQmifhaR9ASPzKkax3Myc4tz01AJDU73ixLyUzOJs veT83E2MkFjN3MF494n3IUYBDkYlHt7OcOEIIdbEsuLK3EOMEhzMSiK8Ca+AQrwpiZVVqUX5 8UWlOanFhxilOViUxHnd7n0JExJITyxJzU5NLUgtgskycXBKNTA68a/JOcX+LoJN9ued4+nT jtfuPjxpz5zH7bNDHWXlvs/nDVQS+/J7jrpBU4Qsu/vBdcnBf4S2paRu+SNR8Gr1/SzFhe9l VRjjnh4LiLNX31y7MyL4UgjfLsH9m/h4n34PFGnfZjXTvzRq+esglVkHNQ5P/aMaI3UmxLdQ hstAQ4hp9qVqgY1KLMUZiYZazEXFiQDZhtIs0QIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKLMWRmVeSWpSXmKPExsXCtZEjRffJa+EIg5aLfBb/9xxjs3h5/gOr xcrVR5ksVk3Ms7h39AuTxbLFTxkt9t7Stpi/7Cm7xbNDvSwW3dd3sFmc//CKyWL58X9MFjPO L2a1aNv4ldHi/Y/r7A78Hq8nT2D0mNj8jt1j56y77B6L97xk8nhwaDOLx+Yl9R67bzaweXx8 eovF4/2+q2wenzfJBXBFcdmkpOZklqUW6dslcGX87N/CXLCWvaKlfxdbA+Ncti5GTg4JAROJ 6Q+WMHcxcnEICSxmlFi95zlYQlggVOLeye/sILaIgKzE992vgeIcQEV2EstPRoLUMwusZpW4 Ov0SE0gNm4CRxLf3M1lAaniBamZvEwYJswioSpy9txNspKhAhMSmr3NYQGxeAUGJkzOfgNmc AvYSK5csZgaxmQXUJf7MuwRly0tsfzuHeQIj3ywkLbOQlM1CUraAkXkVo1huZk5xbnpmgaGR XnFiXkpmcbZecn7uJkZwxHBG7WC8PtH8ECMTB6dUA6Ne7h1jA65fquv9a6oK/2l7C/49Giqy bkLLDP5/tUozZCyW/vDbXsO4ZoLC1MvqpoprreI6fiRW/D25bNuHzVaCLidPvt677kyCXuqq GUZtP6KSck7fuPHx7bsQ01txVxqc/sQs3v1Y6ruPSOzrTp2ShzUlu4yyfYoav7DsqBZSV/j8 a3/D+V9KLMUZiYZazEXFiQDLT269SAIAAA== 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)(106466001)(19580405001)(19580395003)(11100500001)(6916009)(50986999)(76176999)(54356999)(23676002)(229853001)(2950100002)(189998001)(69596002)(53416004)(47776003)(31686004)(586003)(230700001)(81156014)(8676002)(65806001)(65956001)(68736007)(33646002)(97736004)(81166006)(5660300001)(4001350100001)(92566002)(65826007)(4326007)(77096005)(2906002)(87936001)(2270400002)(110136003)(356003)(86362001)(50466002)(7416002)(83506001)(36756003)(64126003)(626004)(8666005)(305945005)(7846002)(31696002)(8936002)(7059030)(142923001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR02MB1167; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD007; 1:jImBrcApEcDZbt7ohJZ1AByBV99r4HYj0s+OJ2RAkYxiegDz12233RZvAyobtBnSAPd4Rp7w/GebqsTglbxfZH4e2CUCSEjVLy4BT3FHmgcBWM+/oNptEeHJxTNYkksYh0Tbk09ANrX5q1C/2ZtMjJJTuYIiIX5zX2r+Y9JkEP2DDFlUTte5/HsBGDiDrhIhi/weM2jsmc6c8bud1fvtBy/7o5cnTtY+PCdQuQy5tnyOprT7Rh9ZMgIafodmu6f5P9e+drNpkA/ZFH6ODkvX7kjN5Z0ab3nb4JFqDOqvFk968M0O6bzO845X1DLQzLR5l0KK/cdVhCpb91li3zF/connk5UJf0gS/ywBhEwk2q6Os5y4IjWRcSRG1+PFvLEblUJ4NqIPFONzPzVLzvI2QkW0epX9AtBm+ttguo06YCgEE160m99ho5+qPT56Nz2Cne3hV5OzykB/lzXNsSUuV2odJcgjXdEIQ5aBCNtXQGDFVkypb8upu2AGB4rsvDiOeIfcuVgAuPGdKrQKdDN10Z5w9HVEXrFX/Nln6ydkLPW5b/LkTYQTNLKV5SsatuWs X-MS-Office365-Filtering-Correlation-Id: 1293c730-a9c0-4bd1-e0f3-08d3ff91bef5 X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1167; 2:nt6my7vXHLm2COb3rq5AqW3EkNrWdDr1LB2zw1wrbVx+vGYEKp9YFvPZ0mjL+FS59WOElVvHOA/MqQgORfSjJE7mkEOveyVOfuZYIQ/wEAA4hu8TimXnU4tiSibi3kfJMXT8d9MMXCwUQRtiZg8tt7O0j8Vkqu9X1HV5D8JChLtUr788wRCqfrAW0khOGb973x0fnvDd6YUKmHHmXZYP+w==; 3:cpqGKJuMhaatkJZ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foVIwE0GPUrxPB//cmtCgVaBZaD1SArLlWbBpSPZFWhUzXlrV/aFkfUlUUiSAy+iKtJPJVOPikDFpWF7yeEchsSKwB9rF7wRaC9qrg4999C5w0D6uWhfd1A32J8FH+G2mcGEHtJemUhxJWq1xyKkCD9K6GUr X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1167; 31:qjjBdtIWImg4blu9PQzFu0fhMUmq1uBJJoBJ6Yg2dWG0K1X6CudIK2ULmaLQQrX6tj3rMUE5Vdyvr5ETgE7f+47jinWlZ3ABeFas6vxqilsieb+QHDieI+NO+P8LDehkxpi/ymI5dbfYGLePX4GoaCwZGdd64q3Guojlx7UQ3NHYjTubCp2SdRKiGm2m4/tjRdUdoKPswyqIYKyRBI4ZOy/26TT2CeWKZyYlCDdBdj7IVLcInitRHBoUdF7XFVL3GkTfxW72Y/iHJQcpw4eCAQ==; 20:XrV0o2TjkiFxqkR8Pdj7IKrPWGLxyZ1ecvfWamwOPq3mjLhTH539h9zfXGIdyduEGTJywjat4LZGjpV7oKF/voPP9sHYdcHCN+1lc4Nszz35rog6h074nzLGZfnh9UVpLcKgrmV71p5ma3LyznciF/gQnUuJlPZDtcF1SkECYIQzKEpDIqVFqm7Vxbbw+hxGwoh40osu+R/t3OCME7cfZsf92MLC189fzzgpNaTuu8Aaxuu6RDX9xscm5LK8I4S3ytgu71mGGWYOczdJiP38TjYl6mJNR030z34ZqIDwX4E+Ij22Abv8CUPJwHY+jvVSFi9CjYq1JeaPh7Zd0tul6OIeyIjWTNXhSOPoYLjoVXKsszsALsCNl1+oijonHt3I2JAt2EBsnnezPkDUxG6eoGWU6yJIjsUXxWy0wNBRy7Wy9FT6ip1uUN9FFE7OVu6AsG/6H4FRQXd3YKhRrVNTMnXSJBtxenClh33lfZQV5pr2hLR9j6jwpPbhOSWo0StQ X-Microsoft-Antispam-PRVS: <CY1PR02MB1167B0346D511F532D788C2881AC0@CY1PR02MB1167.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(104084551191319)(146099531331640)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(3002001)(10201501046)(6055026); SRVR:CY1PR02MB1167; BCL:0; PCL:0; RULEID:; SRVR:CY1PR02MB1167; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1167; 4:Zji5Lo7GzbLb5y0JEt9xYnaJzayHy+qK+6pkyvJm5hHrjrJG6dSiWnLn4EVXFicFcM9POL6ZAvc6ofDaI8jo+0C1Syt2WW+btvdmhqncdT4rPPvxnJZACy6Dfb4g8NI5HBF/wD6L5c8BYETeKRc4N3OcbVHW8ov5hkkUvAuTccpFOU1EPMmpDlUyYFigiobsyb1nAc4ezemvdtxlgZD5xxfLD51ZEQJX1u56VMxC/qtnALZZ3jRT8b4k4wAL9smSXRjhTocb0SP9lakvBojdZrIt5YlZBCQbtI06s3s2pMlHN0Vv3jILUV5+c+jcug/LiR1uZKJWxwDQOixfs8JqlyCXdv32GCsVjnKzZIqK5R/Vwney7saqj6GcU+OmisUYA1HNENgQae3bq7SV5RgjgWQvI4+wo2ZN7RsbZHITu/0PCHRvPP3iP3ItI83e4V+nTtPWqKIQ3hD5unTxZJVAFrvoKp/ozrZshH5NH+PI0L1DNSbaKveJwnQjswIVusWaN3UXnhV19JEDUoKuh0zgk0+eXD3JHktc0l6fu4uXdPlc3OU16Bsspn4/oTXBExhB X-Forefront-PRVS: 01106E96F6 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjAyTUIxMTY3OzIzOjRvS1lBRThmVjkzYVc4aWdQdjR6a0xwRnNH?= =?utf-8?B?THRJRFF6alhLSkRCQXBHYkJZaEU1L3g2TDBsWGRSblFKTFlTcktSaDBQUFdT?= =?utf-8?B?OVBGL0Q1K3JwL28wVjAvdW1mTnRhN25MZ2xhem9uR1VzaDlXTUNpMW56T3ho?= =?utf-8?B?ZUIrdHUvOTk0bG0vS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JQ61nlEOiE+OvziH9SfW+QCNbR9PUW0rEioUYw2oqDp1deaVHRpS5PQOBnlHoQsGcu9kN5LuWO/I9UNPZpRcCPoyCfsW5C/lhq4Ov7u+3xv/13 X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2016 00:23:01.6017 (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: CY1PR02MB1167 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 |
and again,
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
--
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@sandisk.com> writes: Bart> Ensure that if scsi-mq is enabled that Bart> scsi_internal_device_block() waits until ongoing Bart> shost->hostt->queuecommand() calls have finished. Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 3ab9c87..1febc52 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -2873,7 +2873,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);
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> Cc: James Bottomley <jejb@linux.vnet.ibm.com> Cc: Martin K. Petersen <martin.petersen@oracle.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Sagi Grimberg <sagi@grimberg.me> Cc: Doug Ledford <dledford@redhat.com> --- drivers/scsi/scsi_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)