From patchwork Fri Jun 2 21:21:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9763477 Return-Path: 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 3389360360 for ; Fri, 2 Jun 2017 21:22:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2697628590 for ; Fri, 2 Jun 2017 21:22:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B899285D5; Fri, 2 Jun 2017 21:22:27 +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 82CA028590 for ; Fri, 2 Jun 2017 21:22:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751264AbdFBVWY (ORCPT ); Fri, 2 Jun 2017 17:22:24 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:30215 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971AbdFBVWR (ORCPT ); Fri, 2 Jun 2017 17:22:17 -0400 X-IronPort-AV: E=Sophos;i="5.39,286,1493654400"; d="scan'208";a="22370811" Received: from mail-bn3nam01lp0179.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.179]) by ob1.hgst.iphmx.com with ESMTP; 03 Jun 2017 05:22:15 +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=tLCDhv2QzwkuMVjI5sipFyH3mzVxGaGTgGKPjReyNx8=; b=Lvr2IZ8CDCRj/HBxe+hg0e/5ZyM3dV9FEPX/9j//rgWZl6bHboGbyCcHZVT1D9oOmTXLwl/4/bHPbJhARYa+9g0BVm0+Bx6Muqnv03jTe1JaB6RgrFOo17ZxjHbiqPfhbrTB+jREx16FrxKmwd87PCOSXdR5LONUHSIy8Osoyj4= Received: from BN3PR04CA0028.namprd04.prod.outlook.com (10.166.70.166) by BN3PR0401MB1460.namprd04.prod.outlook.com (10.161.210.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Fri, 2 Jun 2017 21:22:14 +0000 Received: from CO1NAM04FT053.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::207) by BN3PR04CA0028.outlook.office365.com (2a01:111:e400:7a4f::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via Frontend Transport; Fri, 2 Jun 2017 21:22:14 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.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 CO1NAM04FT053.mail.protection.outlook.com (10.152.91.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Fri, 2 Jun 2017 21:22:11 +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 B6.7A.38445.107D1395; Fri, 2 Jun 2017 14:22:09 -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, 2 Jun 2017 14:22:06 -0700 X-AuditID: 0ac94371-422569800000962d-96-5931d70160eb Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 9E.A4.18148.DF6D1395; Fri, 2 Jun 2017 14:22:06 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , James Bottomley CC: , Christoph Hellwig , "Bart Van Assche" , Israel Rukshin , Max Gurtovoy , Benjamin Block Subject: [PATCH v3 05/12] Introduce scsi_start_queue() Date: Fri, 2 Jun 2017 14:21:56 -0700 Message-ID: <20170602212203.30401-6-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170602212203.30401-1-bart.vanassche@sandisk.com> References: <20170602212203.30401-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLLMWRmVeSWpSXmKPExsXCddJ5kS7jdcNIg1f7LSy+3LzCbLFy9VEm ixuL17JYbOznsOi+voPNYvnxf0wWpx8dYHdg95g26RSbx4NDm1k8dt9sYPN4Nv0wk8fHp7dY PD5vkgtgi+KySUnNySxLLdK3S+DKWNHnVrBCtOLAorcsDYztQl2MnBwSAiYSV38uYO9i5OIQ EljKJLH+9CQWCGcro8TXx3vZYKr+r1vCBpHYzCixatV/RpAEm4CRxLf3M1lAbBGBQolL2zoY QYqYBZ4zSqybO5MZJCEsYCbR8/oAO4jNIqAi8WvqT9YuRg4OXgF7if1rAyAWyEuc3bITrJxT wEHiW8cSZpASIaCSqX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CvA0AEAAA== MIME-Version: 1.0 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)(39400400002)(39450400003)(39410400002)(39860400002)(39840400002)(39850400002)(2980300002)(438002)(199003)(189002)(9170700003)(8676002)(478600001)(36756003)(86362001)(1076002)(2950100002)(54906002)(2906002)(5003940100001)(47776003)(53936002)(8936002)(356003)(50226002)(5660300001)(50986999)(72206003)(6666003)(106466001)(38730400002)(81166006)(76176999)(4326008)(189998001)(33646002)(50466002)(305945005)(77096006)(48376002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0401MB1460; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT053; 1:uKUaGkwe1nzsbM28WCB2Qqaa/gGXuQiCOTNhWAPg+ZlKiyPWS1R113A/ocmRaGy/93tI7XOTuSXxRd9WI5M7SNVlZpTE+/A/jAJsmQt9DYGvwKsTNuOZKhuAa5k74PYVKQ5kELqRlxsOXt6XJEVcD5JUgUz5mKXNi9ecD71xNkBNoK7oet0k5Fd72pae+B81Prx7keqQkTNJRX0q96VeA43e8cslZbDa0CjZb53kf+YgNJOtzS1HW8+ehT3e5UrVAo6VUMQYLhC1y88LYqPPMHrTQxC/vbX7szYHdmONIiWvTtAB53iV1kxlzuwrWylVHl6FXPO5VX7r0jQ0tWP8UPawarW90VIRCAB1zCFrOB83C/xC2Ohp+BH05Zl4YF0htrYdX0AVi/7CBeVxHerbJFgxbh+JyspZjS+ETCkKCm89dHL/cGJAkTzOhOkJMJsc0dWNZ5ltt3fpIU8ba7EnP5etBrukBIk419YNSqA2ZiekUf17khpF+J9F//MC8QjQWQ9/piDC/Z+0NThtCP6Z6SphnQ5MFsdLhkPmbF454TYKdlS8udJ1pJvqc6fCUf9i X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PR0401MB1460: X-MS-Office365-Filtering-Correlation-Id: 6b74f213-880a-4139-c112-08d4a9fd6fef X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN3PR0401MB1460; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1460; 3:MPYZnoO7cmxSa6gbhJs0z9Vppjr7+kCy67nl45R5f2WIEr8EilTwS/BQ/4sYh/lxs6apH/PiT0GR9/SWHjvXflqn8wJDgH1y8unfnd3wJi5Lex76BePv3V8zmAd0UqhW2k8xSYHPQlKkGZHw+Q/EnPbGrBIKGAD9CcU6c4zZgRlWXit1CsHkA/AEtueHsCgwt2INIU6OpSfjtQRQpHU585za9FBGcmueNXUT1Gl6vIjznk9E7EFQCXg9OwRlt3B2RTXb6jhrgOqAvt/qYP92znx2xXe/McLlV1cYg1jUJhbv2oPLaAwvbEqHMlUBQ91E1pTz9EJENw5jdzbG9aAvdjS3yD6nbRTEQLYnvDMCTQkXO2llDzs2WGl74GDsvn6ps1yxwhkBBRtgRK3oRG+Rct+JGoAvNe27rGKPDQoBTzMCCuKwXQO+7HiW8U79cIc4mWpbm/4byHykuBl45P6LZugDNp5AdNKxhJXicsZBpj1XZgbj7fxTUtr866fTE229R/oiBjiyWpng71YiIwiO+Q== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1460; 25:dhCjNMQTJC/04QjFp4+2a6zD83oqmbJcu+NnchP0JPrRlC2EiqZFUcYnfqVc2017PqbIP5859eaLASLw/lowC0NSqEtONiw1hMna2tqR/URXEMg1LPB8+wr+fGtPmhFkuhMOr5vrNIVfcyhDtWOjMQUAl7nQZl+jUA0UhMBSVINPiMkOjiuvHHFh3mxzaa7MzXjAo/JOZ/EfX90WJw9fc4Nrx1urC3Fc7KykRQ6V1UmRUsZZPDotSibYWCPNmGej0FKbf5KceJVJw2HuygsaRaytW8JULOy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sYNWW11Yp6 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(104084551191319)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(3002001)(10201501046)(93006095)(93004095)(100000703101)(100105400095)(6055026)(6041248)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR0401MB1460; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR0401MB1460; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0401MB1460; 4:DFPrg+IQenlsfs9nvq0eI46S00tOsJsnrNaipunh?= =?us-ascii?Q?SDcIvqDetTHdr0z4dqXb/f7B7KsLfjfLV+WqkVyTF73UsIcJayQ4K2QOeFZ+?= =?us-ascii?Q?F+Q7vl2ohRJqCruKhKUxLKnDiYSK7UZznovSYtcZzYKcNYi7LVKFKxZnVUdc?= =?us-ascii?Q?vNLpJdcFpFO007zbyszu13MFYeYbO3b/vobt43VvgG5ub1DfA9Cy8V4GpB4r?= =?us-ascii?Q?pNypIL6BqO9GGK+FgbavKC/ZSAlwDbawq0rLEI6yUoUDz8+akQtYCyNwTfp7?= =?us-ascii?Q?np4OWVELmjs/c2z3DxjJ6uC7rFgtBzCIoYH6SGic6Q9v3CdmtQRJSoeLIeIg?= =?us-ascii?Q?8fTJGkJ7bTBQKJPFEq0QgKLSLGBi5Z92iBz+rVP46T0Y/gRvguATLnOxCclq?= =?us-ascii?Q?+SWRUElR2rv3zG7nZBt5WdbeR8wKvL2RBHi4lYOy6ev4LpzyCq8PGRBA+QtC?= =?us-ascii?Q?2VQI2HJFngrh+4O4FXmu4nj074SwyR9CcMs4Nu8xyCZJLcJ9JYHIlVh36BGp?= =?us-ascii?Q?L2gDHtVK/AD9kL7d2mS+14rWdOVwKvIipR4hQc/rGewVuu7P31qvvkQmwEa+?= =?us-ascii?Q?eXOfI6M84dwTmugMQnNdsHhT1pnRpue1e+O3ar7xD9kEGcDvgewO13/a1FRY?= =?us-ascii?Q?vgrbJB88CjUDPVfhtEXwA/sWSE0xO/7vGq8Z/nUHUHEPpWZ2rWanTG451Ubl?= =?us-ascii?Q?uJimeyTql9DV+tZHAhXxjVykmpdLTx78SBP8msGqLA2+AGlzjuyIIKRu2L6w?= =?us-ascii?Q?sMPB8FmLPyNgAhwl7IMrrxhZ4WphkynO4NZVaP+TyMg4TflOZnyy35I8MHw7?= =?us-ascii?Q?G7xzLnwbZIwy3evtvEGKBVORPMoKH7ZoqIX8f2ccobHAy8LsPd+caqBgLXIY?= =?us-ascii?Q?2jDpNCAhNbjIHo0m/xMKOs7FjQU3TdRCm+JOKpcXSuRFqlNwfZvS4uoShI+y?= =?us-ascii?Q?dL1DiIq2MnS6DDoCkIfxNv6z0pkDOVJDZ1aXhcRqM6my1hYJIESMSIxFcwXe?= =?us-ascii?Q?44VJntxvBHWhEKXc1v7JVvH5HcIGCwcv92ZbIMRWd/k4/qI0DW2CqYVCvI0k?= =?us-ascii?Q?WMR/x5kulebFeMSHXmhxPvZ5yNRacRpV8OFin0homQnl1kERpaoKomAII6B3?= =?us-ascii?Q?YwpPHb7jZKu4z3kyQklMtMobPGaSfQfxcz6F7LMv7ugakCBf76VhUBhgOX7x?= =?us-ascii?Q?tkB8xUq8XnZSzyvj2WBv23yrhEqYGP1eViEEbX97wLzqrNQ4LO4PqTg1FVgm?= =?us-ascii?Q?/YELiZL19ntNyEWBbvGj1IVyleM3c56+t7idb5yVXdjOqIiHPcpDs2C3wWe4?= =?us-ascii?Q?Ag=3D=3D?= X-Forefront-PRVS: 03264AEA72 X-Microsoft-Exchange-Di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fXmTH/nreqak2lwPzaM+QZnwKQ?= =?us-ascii?Q?XPPuyL+niufVFr25pLNpKaf/18JtQlMZv6DTmhJ3+8WqsppOyHSNORwX1G6r?= =?us-ascii?Q?KM4xFu0IQs8klH70EdpSddFXiAliqmJDOgPe0xiPz+bUIWp5vxp+vGll644W?= =?us-ascii?Q?Gbm52T9llW+MPYzhlerChHmv2ElNiJRQdqABRh9AqwJFxJGUOA455Usi/BJ0?= =?us-ascii?Q?SZvQ3JGc=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1460; 6:0a+eI+E1R+N69SGdFPACWj/2B31K62zDQ3HOcbzq8LI0DBtjQ5oRjnD2B1mJqltkjAh6J2FuxvD9AUSVFi1X4b0aN4hdAnctdeapZssH1cHogDA3YB/G/fBhuUkIE9s82Gm0BEKleiL73b4WmLq9nryY4HmUwIsCRYfZTyrzfCbSIRz+ZeEFaWbrwzU83F/CfBD+2TCWLVgno+EENo9br8QFy9ip/CTqDACnA8HPrN7eff39Iy+nGnAN8SVH57zh0Mp4/92Rt/rOVJw8tFb8fUR9nu2lm9ndWDis4OpYY0ferIvpHqBSjISg7jsF+ShuScraLcjvaD43MZe0k55eyCLTsDxSoyJBzrXCfPc4FoTim5LEByxj274XUqtChGUVaCMtWorfmq93O8sk9Vg7w3dC4xwHco9i5xdKgOXQV21t9V8jvKYhzRyW2N1DB633dGaGKvCRI1OTROIcR3vvMsyuee4r3R7dWxG3g3c251zaJeXxVHUMe0idvWizHjUgLTkzDHDnMx9VNbD7ButuqWW5Te37xxLA1GnLYfOEhU4= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1460; 5:EA2q5pi5o3Tm7mlOMWPyqmaVdpqE1dJNOJyL62+p+L7djWBvpEfmzVfGhRsriOJtqMKRbYN4IxQAD6ku4cW0SxHo7IW9TaANg+fNmkA/5R/uy1vLWcSCXtV9m2rkx7tbv4JUAbLoSIoL+NIgz4pcnnrhn/HxuLXnSGlsw3fy2A/hxaQ6B7Yc95pIiPRVV8l1RiBCUBNTYmLpQAaHYmqayMahQYlQW3mDSSdm8Yx6f3KKYwXMAIkYT+z+v0KrYo0oWu5D6h2QQCdPWT6818bRFEvvXw04tJdalNSgwvSqJOvjKjE1Cy1LuzOIUd4CGO1CRje67gSTOHyjKVMdMaxefl0RQkL5b7jaOVckQu3UBYX6NpFMWTHrkk2F+GOGUiFdQWNHW0kviMN7GM8XBZNYWCcYG3GoFneUlYpJ3aLj2LxDymnTzgeXHBw9y6PXDx8NNX5u+a+2fyq7yevkB6fsxjqCiUg9/+ZCKV0f09AMPA01d+ogzdGpvRoHQb+9Q9L3; 24:b+LUoWbOwds3CxJFz6EvbyHzZrIndYJVGINPzBwrBT1NVRYMe/hkYUfgVgFUaVdLjnIuCQh1cMIqgB1kxfLueKLMu2fOLjnBSWFBg5EnR7A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1460; 7:sI5m7lveCN2J/1zJmIG1FIpHocwGGdD9z6fcOgjiq99nCiaAoURq53GHo7jE5zZZTk8fcQ71WCXmF43lYCsZU46BhlpMBJB8YZ8MpKPnTZOKfNMn/Ocx/xtGrzZ1dgbxtKhvXSA4SYwM9ez03lG1iNoyiQoWLx7dH0C5qiD15C8MuaS6pwm6MAEg9Suia4QCXR568Khenu0T+M70VW7hjGIKw1eVJyWLmPu6iv604DAGw04bvMi0m8gxeykPVge4fXGCPcvhZ5ag6rGe/lf3IekcQAGH61KKCw1k29pf2qVd6EUylpQmWdlocaiH84cXOt1qloS2jq/fBje75MVagw==; 20:TtFCiIMLF8JDgoHRNqk9AaxeuqIVnkOPwsGvIC9Lzwh3TSODLXbBJlF0w2OF6xh55bYldaChrKq+qD0tgr5dSXEC/d+d77U5Hoi43EWHSkPTKt5qpa/i7gvp4LSuve8Ru6q+AqXJ74Z2sNNmH5vXYeofvTrWsjJS41Ut+RS9P08= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2017 21:22:11.3545 (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: BN3PR0401MB1460 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch does not change any functionality. Signed-off-by: Bart Van Assche Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig Cc: Israel Rukshin Cc: Max Gurtovoy Cc: Benjamin Block --- drivers/scsi/scsi_lib.c | 25 +++++++++++++++---------- drivers/scsi/scsi_priv.h | 1 + 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 845d47244e70..6a58a124714f 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -3030,6 +3030,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 @@ -3048,9 +3062,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. @@ -3068,13 +3079,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 59ebc1795bb3..f86057842f9a 100644 --- a/drivers/scsi/scsi_priv.h +++ b/drivers/scsi/scsi_priv.h @@ -88,6 +88,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);