Message ID | 20170502180043.14734-5-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <linux-scsi-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 8364B60349 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 2 May 2017 18:01:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 779C82848E for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 2 May 2017 18:01:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AB2B284D5; Tue, 2 May 2017 18:01:03 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI 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 37E622848E for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 2 May 2017 18:01:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751267AbdEBSBA (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Tue, 2 May 2017 14:01:00 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:42055 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751220AbdEBSA4 (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Tue, 2 May 2017 14:00:56 -0400 X-IronPort-AV: E=Sophos;i="5.38,280,1491235200"; d="scan'208";a="14766354" Received: from mail-bn3nam01lp0177.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.177]) by ob1.hgst.iphmx.com with ESMTP; 03 May 2017 02:00:56 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=968KEAs4j6NEK74XCKRUGl+NT+X4pKS3l/MBntTYn/0=; b=cIHRT7ccDG890+uVf0uJfdr8CXzFdC2wBtHjjIz71zh7uQ6VI1wltOpX0jVQcyk0zOGWcbwSvwhnrF66+ubjSOsM/w6AxSBXlXMet0F1t00F90SwuugzHiRvYJ5XNkB+bRazO90cRRfpbCLfhcICRbTjEAQ5UJqo9X4KYnhMeZk= Received: from DM5PR04CA0027.namprd04.prod.outlook.com (10.171.152.141) by BY1PR0401MB1208.namprd04.prod.outlook.com (10.160.195.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13; Tue, 2 May 2017 18:00:51 +0000 Received: from CO1NAM04FT039.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::206) by DM5PR04CA0027.outlook.office365.com (2603:10b6:3:12b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Tue, 2 May 2017 18:00:51 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; suse.de; dkim=none (message not signed) header.d=none;suse.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 CO1NAM04FT039.mail.protection.outlook.com (10.152.91.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Tue, 2 May 2017 18:00:50 +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 C4.18.19026.159C8095; Tue, 2 May 2017 11:00:49 -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, 2 May 2017 11:00:46 -0700 X-AuditID: 0ac94371-41ba798000004a52-71-5908c9519c1e Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 35.F9.18148.E49C8095; Tue, 2 May 2017 11:00:46 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: "Martin K . Petersen" <martin.petersen@oracle.com>, James Bottomley <James.Bottomley@HansenPartnership.com> CC: <linux-scsi@vger.kernel.org>, Bart Van Assche <bart.vanassche@sandisk.com>, Israel Rukshin <israelr@mellanox.com>, "Max Gurtovoy" <maxg@mellanox.com>, Hannes Reinecke <hare@suse.de>, Benjamin Block <bblock@linux.vnet.ibm.com> Subject: [PATCH v6 4/5] Introduce scsi_start_queue() Date: Tue, 2 May 2017 11:00:42 -0700 Message-ID: <20170502180043.14734-5-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170502180043.14734-1-bart.vanassche@sandisk.com> References: <20170502180043.14734-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFLMWRmVeSWpSXmKPExsXCddJ5kW7gSY5Ig3tXdCy+3LzCbLFn0SQm ixuL17JYbOznsOi+voPNYvnxf0wWpx8dYHdg95g26RSbx4NDm1k8nk0/zOTx8ektFo/Np6s9 Pm+SC2CL4rJJSc3JLEst0rdL4Mo48HIZW8Enk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vKfGTG1LaycwqkzK2v5BQ1te7ot4arGHheC6rcuOLOqdeL57hxKL9w/B3+cXZ37wv3QyYMfW daf/l1dduvy9NUlutZzyjdrjKUk5W07c/ibusJNTIZ/t/bX5r68rnzuobbEo0W7yJ+PVs559 PXZPzj5g8x7RFa8tVj1O/cxalpEUvqJhS5gSS3FGoqEWc1FxIgCc/PZ/zgEAAA== MIME-Version: 1.0 Content-Type: text/plain 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:(10019020)(6009001)(39450400003)(39850400002)(39860400002)(39400400002)(39410400002)(39840400002)(2980300002)(438002)(189002)(199003)(9170700003)(508600001)(50226002)(77096006)(33646002)(36756003)(48376002)(5003940100001)(2906002)(47776003)(5660300001)(1076002)(81166006)(8676002)(8936002)(38730400002)(6666003)(189998001)(305945005)(50466002)(86362001)(53936002)(4326008)(356003)(50986999)(2950100002)(76176999)(54906002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0401MB1208; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT039; 1:0m97fwCHujow7M/mFEVAmGGSeA0vyqifcu3opSaAzgfr4uU6s6XMykegrHlPCjk1dNLa7dri+bG6gmHt/7791nkS/rT/alzsklF3KMbRTtX4mERwTZTzOS+oDgZNC/GcyDwZrxIxPNncSGzZiCZOUtWQnoTsiDIvHqtfFLDCko+BeLrNBX5GBMghNUfpIy4V6089TQsaj4GCm5x0y6IfN169NYZPEQuuTZ9im7vo8tiY8iv1kkXXFzWEyHt5JBC0hi7IkI7O5Zw9Wyaiz2wxO9kybJ87QdHudAbxQz/Xq1Nu2lhrLbButL22AHHLmT+WBercURrJXAuHY3bWLSH8xJz/YKKZCXCMrVXqpdGvdpAmvVpMWUPIMzaNdcWrnGMyljsOWCHpT0Jpg5chHMQtxDuztadjjnPmgi/+l68A+wcGlFc3VwE4gej37PxG8Ttzz/hJa7i0OHtSlCFR6vgt0RBvXGaYnfyL+RmefylNHIxyFj9txohWkdGF4gV9t+R2i+WQnWpQoeeyzkcIg5OeVg8z0M+zqCQoquso1COCfvO1NafSo/3k8/+hh881AoQ9 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 85ce5802-4774-4a68-e94d-08d491852b7d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BY1PR0401MB1208; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1208; 3:GLKIFd4jdLV5/5W/kXepa+mCVI9oGCnpWiZBN0z/V5514xPBx1OxXupuqO1lv9IAFAV0oz+41kXdJq04uE0ZsmY1LuEBUFw+BKGCL/9pWz22ph37tzB1/q46dr6kf5BG0wpnRBvzNQJ5C7C5bim3TN2zRiC5QwIPsC1Z6lXsZ955i5XkLGKm7KWB+zSaOPUby9uBhPIeabzKObVuRoEBsPY6YSOJUR/TNJqhxUhb2o3Qbf59RR68Hzn4dz06y42mffm4m720eQJHNiDXslAE8VPU5B04xyOBa7oVHOaKm1sIPnLAQiH+NtmawLU4s1PhdQugcb5iaMx5mMPNhJp4Q6YNiWNmx3LY7oJWkA3uiF8dSZWzdnaIAksy96lkcODtjuoiD72xrpn0N0AoI9u/xYt4H7MDWDLy8tBJLJZNyY464iFBUpiVH/0dORfIj1nN7b/hJKFbUTR5nbVtgsZaU3DKgNpRB92BX4f3P6rjFyqi7MMvuH2V5TeV1cs8p4Uo X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1208; 25:luonuVLw3xu61qbL+p0dX/flU4v4un/H38fj222PLEuvtVq2MprSgcvl+E1lQrRQ3gC0Tb67tbmrp0knJy1W+XrjITliZNEaACtV0PxVWyTIVYN2nHDT0HcxXfbSeh5s0XTD3q0uQoFeVAIP0u8MRDk/Y2ys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VnWED8L/YnzFmUSNCeUZ2d+H6Knl3o3WTN6e7g5QlvxiLOTsomcPKl90iTALtwB6TBUG+sI0VKPZKVLyYAaVvv4D/0uMHe67dDzXfHaTKxDh X-Microsoft-Antispam-PRVS: <BY1PR0401MB120846F65B8218CD71FC3B9781170@BY1PR0401MB1208.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(104084551191319)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(93006095)(93004095)(6055026)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BY1PR0401MB1208; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0401MB1208; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1208; 4:ofO8mJd+CMUng3bbIvJ9Ml+Y5ok16dk/PpWYqNwovTz4VfW0Yhh9OSUaF3HTrXBMsWrBo4FJitJXGcQ3x+v0pvLt5Mmaz62P8wK29V6FlxRbP9OaE61pv4sUvrh8Gst8XATsUJvN7oRzmuMKQP9vr4YPBL+G+7TQsH5HlY/9M2AQBtkMqpz8Gob8KI9vtF7bX4dvQgwAg0c7vFlOxhB/buWThPkPUH8Q5+YOJbRBbrrmpE1Dy9/cNJOyIOASmh4YF3QJABNRgdVyqcTCjVD4PqNS3mx2wLak5ND5bUxSTH5fIkKovJYnqU07rA2mSMt5IUIV45iKaQomEJeR/oCrdCJ/q+Jxe2DUMccJCggkwnsT7dhv/QwfBtbrxcs1uCjps1Xkf2Hlx5d0+TJS/Oizr+/32gxM+di+oOjvTOBbLKhcG1BuYzRzJ5a0RzC41l2ZukqkB7mOVxyo0j7nv5HULbfeMcxC2cXwxfoDUZSAfdpwT9CtLBSRqTNFfHr+qFAF1RzMZhvRtCInClo6YbGAG6B3ddYSV2SE4FmfqqskoMlw6MejQgQpRJgdbgOZCwKDZOiPpOSxYP4+2LhPm2AR5Dc2TzRjyDqWYbKW3ODceQ0+fcFqsq5CVYcY94mFGMfYKp94ujU8/AiFHQi85JJDQLzhTTdGbEibCnUWOg80bkEFAQrWjOhsV261lUlVHIN3zBBe9TgpbIaWKp9FSXkczO0XfGW8Z4sB0KyChNLDy8TY5AkIsG3UbF8ma5joLbkOsnW1fs029Uw2mkns3HqoQQes+550J0fDP+eXypyrfHcXQ6uEAMiuMYZxLZyxndgg+2gVNE+Cbjwjx7oblXkrlwh0ZE5t9hJyNMv4dSlt6nA= X-Forefront-PRVS: 02951C14DC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0401MB1208; 23:x0iMke5IBXDiEaMj7+pydnMoIBZbhkCrhjob5JK?= =?us-ascii?Q?wjz8hvUuY+rW+T8EhuxqwLbDjqw2mJ9hi15SnrlJXp3YFV8LBczfh2b25er5?= =?us-ascii?Q?xuzD8UMyy6FblPHNJZhwM6YILduFENzzEAPASrslo07+Uoho1qonQ787ZVWC?= =?us-ascii?Q?Vtn3uuo3Fymy2y/O1CH+EgumetkhlZ2nIAN575sb8xIMpVFaN/mF/fi5o1qt?= =?us-ascii?Q?0JUqaWLml7h7ARkN1hg4lKYqXwA1CcF90XnaYfyVWjFKw0MYBd6ZtWMOUFnq?= =?us-ascii?Q?tjENx/sRFq4VYsj0y6uF+krmbCYQ6dkQMNpS0/A9ud/lcVN98nSC3CiaWtUi?= =?us-ascii?Q?oGw2QN4ht9IZEwZUZr2usgSdO5ImVhHylmbkfw6071P4wHIzAC3fnMUTKWXM?= =?us-ascii?Q?uBOoBXdULhXLN5XjimPpL7nNyxuA6Q5S5TdcPxiEgzfitw+vTs2q1h4JBWF3?= =?us-ascii?Q?l2tE/WupLzmRWWWxXgCo6N0uGJdAXzfSCgRJvX7e3KgcSU97n4vvTx+CoVOe?= =?us-ascii?Q?C+2pSpET57E1qxZrdMTSSO4ew90IQTlxe/BK2BPHsf1AlsqOfj0M4Cem+3/R?= =?us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Mv1KuKOFIzStjyeazYTq6x8v7iKMgP2QILhBHveEkIgJv9z73Z1LBCVQhGtgyNr4ls8F9g=; 5:ukKGshdzZly06TJZzAXIDnElEZsT+U7c6vgoxICdj2NI+xOqw9nD0x9vFi3s5ehHqiHUs0UW4AjMxtmJki+6x9dbOh6h+aCLRMFcOcdfxgypHOYSzaYj/9dDGhHCR/uI3TnpX1agrr9/L4mGF0twBg==; 24:rVVQ/TCn1nHLHK6BZRMeU1WG6FZHKhEkO3Lw8hGAHQDe3Eb0yXBpY/+ysHoy/SdUfwl5KD404plluGPt8boFr2mYSsX/azaw/MGSzaFktAg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1208; 7:NfQs+LU+oB5Bt3NIVyTk67BPO0ZjWLV5Qppn1FAiDEINsgRFhRL8YXrxYqnJsoXuB68pSs14RnEZ43WPV+XIMyrWQcyyfSko/yWxOZvvswkDbprjXJM+mPZnAHruziJKw93W1hQpdHmrJhqvUuDOgu6Flj6ukjRIqUhtPQ9bi0MmU/cASljj1LMDFWspm44pEuPGjvO/Em8ExLxkkNTFCifaYGccr4kWv8mU3l19Rr0dMS3W86RHRF45Zq8Sz2fvj8qOLXumvgL57VzNjyKBw2be/RYSygG2XJQhrHD4w8FhjNHZ0GJJVR0G6mQabCfJNmtw1aRdhf9Wr713kH5mMw==; 20:28SvaZFh0mSlVnLLAzke7j9tRQK4SYnLdvezt6+wthC3M6vAQ3bOnBLAevQ6Q5ai2qNwi3N0h/WGlQ3tqgpHVP15zV1RQgZWvEldf1JpowscnJw2ZjaTLRr7Tysxx+hTM0FALad/Ma52zKgIGjTMq05CnaR2sM8CrQpi2x3cVCA= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2017 18:00:50.6026 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0401MB1208 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index d2854558437d..bbce1f1db515 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -3024,6 +3024,20 @@ static int scsi_internal_device_block(struct scsi_device *sdev) return err; } +void scsi_start_queue(struct scsi_device *sdev) +{ + struct request_queue *q = sdev->request_queue; + unsigned long flags; + + if (q->mq_ops) { + blk_mq_start_stopped_hw_queues(q, false); + } else { + spin_lock_irqsave(q->queue_lock, flags); + blk_start_queue(q); + spin_unlock_irqrestore(q->queue_lock, flags); + } +} + /** * scsi_internal_device_unblock_nowait - resume a device after a block request * @sdev: device to resume @@ -3042,9 +3056,6 @@ static int scsi_internal_device_block(struct scsi_device *sdev) int scsi_internal_device_unblock_nowait(struct scsi_device *sdev, enum scsi_device_state new_state) { - struct request_queue *q = sdev->request_queue; - unsigned long flags; - /* * Try to transition the scsi device to SDEV_RUNNING or one of the * offlined states and goose the device queue if successful. @@ -3062,13 +3073,7 @@ int scsi_internal_device_unblock_nowait(struct scsi_device *sdev, sdev->sdev_state != SDEV_OFFLINE) return -EINVAL; - if (q->mq_ops) { - blk_mq_start_stopped_hw_queues(q, false); - } else { - spin_lock_irqsave(q->queue_lock, flags); - blk_start_queue(q); - spin_unlock_irqrestore(q->queue_lock, flags); - } + scsi_start_queue(sdev); return 0; } diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h index f11bd102d6d5..c7629e31a75b 100644 --- a/drivers/scsi/scsi_priv.h +++ b/drivers/scsi/scsi_priv.h @@ -89,6 +89,7 @@ extern void scsi_run_host_queues(struct Scsi_Host *shost); extern void scsi_requeue_run_queue(struct work_struct *work); extern struct request_queue *scsi_alloc_queue(struct scsi_device *sdev); extern struct request_queue *scsi_mq_alloc_queue(struct scsi_device *sdev); +extern void scsi_start_queue(struct scsi_device *sdev); extern int scsi_mq_setup_tags(struct Scsi_Host *shost); extern void scsi_mq_destroy_tags(struct Scsi_Host *shost); extern int scsi_init_queue(void);
This patch does not change any functionality. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Israel Rukshin <israelr@mellanox.com> Cc: Max Gurtovoy <maxg@mellanox.com> Cc: Hannes Reinecke <hare@suse.de> Cc: Benjamin Block <bblock@linux.vnet.ibm.com> --- drivers/scsi/scsi_lib.c | 25 +++++++++++++++---------- drivers/scsi/scsi_priv.h | 1 + 2 files changed, 16 insertions(+), 10 deletions(-)