Message ID | 20170421212636.14376-2-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Changes Requested, 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 7D0D260328 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 21 Apr 2017 21:26:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DBEC2846A for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 21 Apr 2017 21:26:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6095628674; Fri, 21 Apr 2017 21:26:53 +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 49B1A2846A for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 21 Apr 2017 21:26:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422796AbdDUV0u (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Fri, 21 Apr 2017 17:26:50 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:31274 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162288AbdDUV0r (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Fri, 21 Apr 2017 17:26:47 -0400 X-IronPort-AV: E=Sophos;i="5.37,231,1488816000"; d="scan'208";a="114668795" Received: from mail-by2nam03lp0055.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.55]) by ob1.hgst.iphmx.com with ESMTP; 22 Apr 2017 05:26:45 +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=05c0Rj3/Ag8xniz9lZAW5uMg47ETtsEYFXFiyGmAqRs=; b=mXotaHL2GUdAFLSr8M+FyjfsEFWrOJYrQ49hHE2OC3TgdTzhQffbEyJHAjckWQuGdlWq3JzJKbUHBMDyFZAPv8d3WaBNDLkBi/og5ETbCGxA95Uw65g9MLeXo6aN5cTh6zOHqJV54ZLUfbmFHTI3SJv72ii2dju3CXxugmby1cU= Received: from DM5PR04CA0038.namprd04.prod.outlook.com (10.171.152.152) by BLUPR04MB403.namprd04.prod.outlook.com (10.141.26.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Fri, 21 Apr 2017 21:26:42 +0000 Received: from BN3NAM04FT044.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::208) by DM5PR04CA0038.outlook.office365.com (2603:10b6:3:12b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13 via Frontend Transport; Fri, 21 Apr 2017 21:26:42 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) 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.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 BN3NAM04FT044.mail.protection.outlook.com (10.152.93.100) 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; Fri, 21 Apr 2017 21:26:42 +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 72.9E.19026.1197AF85; Fri, 21 Apr 2017 14:26:41 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Fri, 21 Apr 2017 14:26:39 -0700 X-AuditID: 0ac94371-41ba798000004a52-56-58fa79113b72 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id DC.14.18148.F097AF85; Fri, 21 Apr 2017 14:26:39 -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>, Song Liu <songliubraving@fb.com> Subject: [PATCH v4 1/4] Introduce scsi_start_queue() Date: Fri, 21 Apr 2017 14:26:33 -0700 Message-ID: <20170421212636.14376-2-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170421212636.14376-1-bart.vanassche@sandisk.com> References: <20170421212636.14376-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsXCddJ5ka5g5a8Ig+sLhC32LJrEZHFj8VoW i439HBbd13ewWSw//o/J4vSjA+wWPw+fYXZg95jY/I7dY9qkU2wez6YfZvL4+PQWi8fm09Ue nzfJBbBFcdmkp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5lz/b3OG0 8eHM+3cyFxyM5kxXr1BMNeP8VyYRVbuhsepLwNbmlrerdZk5vi+LPDSdWSyTu8FYR4dZmjF4 1sZmy3mL5uw6+ExNftvWOuWbqin3FATvKd9c+ed/ZWhCq+2c88dmiXe13139/3vyqz+nfH2y Bdd/fBQX+ubcKa8/p30mzzDVZJ6lxFKckWioxVxUnAgAnyGmutABAAA= 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)(39410400002)(39850400002)(39400400002)(39860400002)(39840400002)(2980300002)(438002)(189002)(199003)(9170700003)(2906002)(81166006)(47776003)(8676002)(36756003)(50226002)(86362001)(38730400002)(5660300001)(189998001)(48376002)(50986999)(356003)(8936002)(77096006)(1076002)(54906002)(53936002)(76176999)(5003940100001)(2950100002)(6666003)(33646002)(4326008)(305945005)(106466001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR04MB403; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT044; 1:vHf4cdujtvnut/jE0mUHyL+f3akD4RhSJyr8JVkrv+tdyinnNQyUw+epSuFJT8fSV8v6MdhsMJ3B0me+iWBNRigZkO8km1zkViT+Hsm1+HjWx8UhOdnrMBfcVPfdKI8PI4awiAaFpstZjYL9F9zuOz72TfYYFrkmTltRwWEExnX6JEO+awgHOlAqfsxsgYOdNrELuVxjmfOf96Im/HokSN5v7ueeqz0psIMi58W6TWe4vrGSqmKdBm4JWZDxdirHirLuyTu+JoK+fSYU3uUNPLGfjAb1paFKmjzrzb31t+YMssAxeGm/zLXSoRp74fTeTIahRJOkb+6DVPmpP2qkQ3sfXBZaslZfKbypHkQTLThh5mx8Gn3z6nM9WIe5FqIMrgWrPBvgJQB7i/ZUMLuW3BA2lRmWLLZteKF/fh8IrgL7PPGzwBryDzhCCQ68i8AZrXh2Q08Lpv1uYDQU10jYyGkQgl1/tq69yBAoxnONcr6G0UkkqncpowbSwHPDdrSToHNGXFPhUimvGdY1A14QwA== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9fa88757-38cd-44c8-24dd-08d488fd1afe X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BLUPR04MB403; X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB403; 3:2z8K35Cpju3UNsJIdlxVtw0XQXrcx7RPuwOU7UX2rLFd26Jb2yl8NkSaIfwJrv6F41CsyuoVcHsw2jsQAtaF1NiqqMnXDGc4fSQrD6Z/zYyon7DQC38D5pVMB8insjnBQ4Y7wYpI3pfN5A16/bRm0xTKDWHNT5vttSFQ0+Tj05xVXwXk8l8HD2glg6vRVrx9eUiwBaf/yDgR2hcHECMBJrojIrQ5uVrdPUbQ1PmUoQ6aWr2gX417Qqi5KvOpIl9TLL0GITY+ncM88QJXSo2Ipk3ncT+yBoz2HyaelnX39UIR6PD9fCbFm2YwvyMYIsHB4057bx1cqGrUcbF9o+nMaiIWo8aQImZUJqZJTgB9HI/LQ5oDD3RjrgbCTE6ZM8dhwVuIHBgTFK9lnK64xSeyf4AqMJ85n9iHcK6yFEcQ8pQX4XzBH22Tz/GwCf4OAnsP5FUFxMlzB4A5I+hmQiJXKrdnVGsIWsenHwzwWu66zB8HfJxazLsfsGejiJWAllxflAtNg9QZVlfEm4iprMcezQ== X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB403; 25:4+VsiBN3c4XOLWV4CpQ6R9ZcMcFp9KQJxJtacNch0MaOUuE7NnrE9aLGidf38vvrYJOkumbgzrZ8R2IFWNiUUsOgaj1s6k3+gMwIsUkbpd6jN32U9T8QfGH7g5rHMJSnsFQVQ3ac6WNquobSEJvYIjYSH312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9bwCxtluUEaFtPiYqNk+nkQjoKm5iRbeGd6WvSAwTJlQNFmcZKFZPczNGZp+V++7JHh4Gveh7ZJLY+SSiaUb6XeRsQ0HwjIZV X-Microsoft-Antispam-PRVS: <BLUPR04MB4034791C24B65ACFDA74ED5811A0@BLUPR04MB403.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93004095)(6055026)(6041248)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123564025)(6072148); SRVR:BLUPR04MB403; BCL:0; PCL:0; RULEID:; SRVR:BLUPR04MB403; X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB403; 4:KXChXeHB0F7NGYPg79cSunFzKIQXjFckLSw4U5o7BOjQWhQDtISxSiP0juE6TvtgM/ED+Rr2QfK9m7ThbYDx72jSKLOKK6cyYvXcnZCExIeb02zKLo9Sgrd/NFs+65nxcM46UAS4umd4sUiyY3gc++Jg/1SOd3QeAfjpOPhO0mdHg6Q/Pxc/bwPoKNcDPM1KlxGFDiJsmJ50xr+8M/tZybCcCXT7ZC5UZZ2zy9QRxsWiM73MR4pEUEOatv2veNqplVl02mJmLDdaC03jUYCNpIpey9VBvPaosDVTr8MQ0A1tM2BX20F3Bz2GqBvEfcpVkzDDxUJyt825bZgkhHeTtOPoUbAKCrW+d4EKJsNCJyoo7ITmj03dCw0qxRoVsX3I1U+N+w6wR0+1GWo21HX6MfmCGoMT7stHSPA30D/M1syx47DJIELqKcnxBLCIkI6XiJGW5JwQhVM9B0+AdmCllTflXyhoVQ/tArLCSvoQrB/KlRiKwZ5HpUYrkQTfFajNGjJLvXxIoDtlcT5eILhQyKiwrey837P5Z/otG2+5Toe1kPXp76JovTBiqZrNhRfUYSftD1vrRskvdzV4SuXIqxIgxHnbK9aQxXGqWdLV8kp2tLGv0WywY6J730jL0bI2FymPFg8v/gS7DEAk2fL4uBMuko9ZA+BygfeWqWicbiNaB3kiNPWjWPx5dTGAoM+oDQ/pS9/RAm4+b2VK0azsuP30N03RibIetILnj/nvUBpYcPRGwehi3tpRf+VoVBLdhSB7dkhH2qsre2pFrPFOHVaDElxpt2CMk5U8h84eBUwRb7tK105R0DUW1SSFogBW8n/hdxkC6Own6sAmP25ghNnoMUiIm/1mTshuaFwF0XA= X-Forefront-PRVS: 02843AA9E0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR04MB403; 23:fmlyoIxoj+j0BJTeagRfbhd9p1/pXkOfrDwJxpuImw?= =?us-ascii?Q?tzU2ieLNmxYSV3Iq5cka6QpGsJivxP6fqm8sfgLV5pKRpHohAq1P2DiNLVUU?= =?us-ascii?Q?u0T9jUznmA8MmQy/ZmzCyV4MSc85Ui5fB+suqNUVAii32EZciRKKsfz3X/fR?= =?us-ascii?Q?wZg6zNSQjTVVxL2bIWKxtvAcuZZpFoKrNawXBAVTmqjVF/Pb/9KR1HqvdlCw?= =?us-ascii?Q?zGpidA4s63rHgjybTKVoGRXoAz5zhlSkvS9dRAbd4ydUUE6JheLSKYMO/57W?= =?us-ascii?Q?2hCjbFA04CJT4WI27cO5ITAkRd57XLbwcPvd5dMX/ozCIqFIWsKl8IuhYVTx?= =?us-ascii?Q?pXc/B4lzimlrQLnwyqXF/PXT3LuAida8O95upl/bF15D3y4XKbW2HuwnB5JI?= =?us-ascii?Q?DeYTDiXnCpIeaZat38fHQMMkHSjFSBXX9zMAqlXllQV1sQ7ftzaYqCpRdEYf?= =?us-ascii?Q?LV0wNcZkrqpmnOfmdtu9UkSbsdiN1peRnG91vgvw++1qQ0DQsjcp9V3F4Dpg?= =?us-ascii?Q?5e53MpRibHg85vjv58aKtdSv0sPP63dturW+IHFoc3p+8OtUiz62K7SCKgDm?= =?us-ascii?Q?EOJ+GWHsy4cQVVAkUgVtFQ8kMtw7Q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MOUc=; 5:dRLn+LBg4jYnb7pMs3agH+SnZ7u3Fg/rgFuB5znKyFpRNpjIkFjzD3rSrqO9dmPOj9/57GhWlHZ7jFFwZivO6wlYJCvYL3LdAHfyO6IdmsbbMu0g0/ahYD62nrH5GQ9xrg6kcYMXgogbNwH4gS5n+w==; 24:D+skqLCa0NXOmIaDoomlSSyohp5/Wll/vVKF4z5nB45FfpIfPNImpud+1l0x6Hjl/v0Ecr4D+/8v5s/n8mHbbMWPSymQJO5rX7fjsNb8trY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB403; 7:Obh8+xZkDiifHsf0cinHxJvhFBAd91TOi/bwugQn0NmRSzkpkcCOfCveXTV2UFx98+kqiwhP2TiMemPzPNEupSGVoqTIiBRA9SvIgOg9yDNAxvTx3jU41BkwvrSIwUHUvQGkAPys8+EW/E1sn59HkEmg/OEILHJAO0tf+1bwi9y3yZ1iQnOm6O4MwJkwquJ6wfrfTemg5plgDcH1RXdC0Lx5TEqNOh0Ge3iWBPArA0LqBNG1zI9uyAhhw9N5LiXGngbp9rrNojZeui4gayThsBw0xH9NHUTBiCKbNs3ukOJbrG0ypbir5fW7x+oHs1kLdy7R4g/PSqZCoW4BYaQoXw==; 20:4jtCz061EWiuGuTvWg/oMJivERnSi3nchxuBz0A8p/PrZk+7tQ4oaH1gDmmzVMP2cQDMaTRtwp6XKpZCqLTitBvu9znZTikO3VRmnoZwHh9HecrbAncUh7MQnDZzyfOUGJG/3u/nEsJLbziWKUc3sCS0/wYzeOBVPhi9sPo0TSE= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2017 21:26:42.0486 (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: BLUPR04MB403 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 eecc005099b2..ffa6e61299a9 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -2987,6 +2987,20 @@ scsi_internal_device_block(struct scsi_device *sdev, bool wait) } EXPORT_SYMBOL_GPL(scsi_internal_device_block); +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 - resume a device after a block request * @sdev: device to resume @@ -3007,9 +3021,6 @@ int scsi_internal_device_unblock(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. @@ -3027,13 +3038,7 @@ scsi_internal_device_unblock(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: Song Liu <songliubraving@fb.com> --- drivers/scsi/scsi_lib.c | 25 +++++++++++++++---------- drivers/scsi/scsi_priv.h | 1 + 2 files changed, 16 insertions(+), 10 deletions(-)