Message ID | 20170601232711.29062-6-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 1D51D60360 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 1 Jun 2017 23:34:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07D35284FE for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 1 Jun 2017 23:34:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED7372853A; Thu, 1 Jun 2017 23:34:49 +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 33900284FE for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 1 Jun 2017 23:34:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751122AbdFAXes (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Thu, 1 Jun 2017 19:34:48 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:7438 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbdFAXer (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Thu, 1 Jun 2017 19:34:47 -0400 X-IronPort-AV: E=Sophos;i="5.39,281,1493654400"; d="scan'208";a="23210335" Received: from mail-bl2nam02lp0084.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.84]) by ob1.hgst.iphmx.com with ESMTP; 02 Jun 2017 07:28:48 +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=wsy1vStmDkdpw0Nt3QbimMnrcmToMRa/NA7kD4ZFus4=; b=EcpUbdEHh97idswm2b42+aPhSbGC79tAwXBW7kSiFKTS8CJzLZ5ofg0h2boeIPUZ3+RRiCr8MumcRrWol+xaR3WIDnZ7XL4KXpE0Bl/qcLAcqxq0L7wnhFBpdxjq/K5KFTNt36rBvF+sNAKx3rSNEjkPS6rXmitMu6PLbwPyPTk= Received: from BN3PR04CA0024.namprd04.prod.outlook.com (10.166.70.162) by DM5PR04MB0394.namprd04.prod.outlook.com (10.173.169.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Thu, 1 Jun 2017 23:27:23 +0000 Received: from CO1NAM04FT006.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::202) by BN3PR04CA0024.outlook.office365.com (2a01:111:e400:7a4f::34) 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; Thu, 1 Jun 2017 23:27:22 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; linux.vnet.ibm.com; dkim=none (message not signed) header.d=none;linux.vnet.ibm.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 CO1NAM04FT006.mail.protection.outlook.com (10.152.90.104) 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; Thu, 1 Jun 2017 23:27:19 +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 C6.A8.51736.5D2A0395; Thu, 1 Jun 2017 16:27:17 -0700 (PDT) Received: from milsmgip11.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; Thu, 1 Jun 2017 16:27:15 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-a4-5930a2d552e1 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 9E.83.11415.2D2A0395; Thu, 1 Jun 2017 16:27:15 -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>, Christoph Hellwig <hch@lst.de>, "Bart Van Assche" <bart.vanassche@sandisk.com>, Israel Rukshin <israelr@mellanox.com>, Max Gurtovoy <maxg@mellanox.com>, Benjamin Block <bblock@linux.vnet.ibm.com> Subject: [PATCH v2 05/12] Introduce scsi_start_queue() Date: Thu, 1 Jun 2017 16:27:04 -0700 Message-ID: <20170601232711.29062-6-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170601232711.29062-1-bart.vanassche@sandisk.com> References: <20170601232711.29062-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsXCddJ5ke7VRQaRBlv7BC2+3LzCbLFy9VEm ixuL17JYbOznsOi+voPNYvnxf0wWpx8dYHdg95g26RSbx4NDm1k8dt9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nrFiXkpmcXZesn5uZsYIUEUuYPx6UTzQ4xMHJxSDYyJU+uU +n6q2E6atHnuwuCph8rW3RMI1VnQvr7fvT8177OuVb/fnSO5TVGfHD5bzEtU9TlbrrAp4/HK DR9Sl8zxNp987fXn6QxLONfkbrb8Gs/IWH73T+GkwpvF8s+Ym/fw3D63ffPD5wxOBleWNx13 2MH3tCf0yq2LXHEb1jTFBjBdStJRilquxFKckWioxVxUnAgAxik0gNIBAAA= 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.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39400400002)(39860400002)(39840400002)(39850400002)(39410400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(6666003)(76176999)(5003940100001)(50986999)(106466001)(2950100002)(50466002)(5660300001)(48376002)(53936002)(356003)(478600001)(38730400002)(1076002)(47776003)(81166006)(50226002)(33646002)(8676002)(8936002)(72206003)(2906002)(189998001)(305945005)(4326008)(54906002)(77096006)(36756003)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0394; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT006; 1:rPBWDKSqaj3v+vbpSVcztSI3KXkuyDvm8W7wqwUasNJtQCnYUySomNwZy8KFdIcC5lDdIPeTkAzvgskmWr1v5c9pa/dVKPniIpe7wPRcM1BrI49WVLTxl+oTgiHta2ndnzXYfwIibXLVZU/iWMYv1eC9Zlwbn7BElutzihh3X5BGEaP5GbFa2+KKqPrEt2+Q6nLpM+3QmXNUDIpKptx5oyCGZTU9EHDhVGCSBQkeEr6wCn3B5YRaOUjq7wsKl6qV7+Gi4AndIoP5TAKu/3cQpn9bXxn/SV0kHXTgLFdoh3y+iHJ48Q/8sX33VKqwQYJZXD5Hz9Omq4Xd+iy5jZuhbrDF9E9zBalAm6bq5rVjP1hw7jMgf56ZrCtQ0BfwX5tg6rxZW4IriYLjfi5IDJLlXCapQy20pjbMjKgG5Kwl2iD3p05PADxOJM+rJ7FHk0XEikqSaxQfHgrATxfu/huLNgI2Vx+Xh9A7MMWhzCBQvMVDwcAjgZXndxJ16s6SRgDWlcM1sEQV3kpdOQg28kJ4JazM9t1Y56IvNSFcIJkEdqw75Hb4HacfkdXtmJcnT0il X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0394: X-MS-Office365-Filtering-Correlation-Id: 4dd6dff4-6433-4a77-6d8f-08d4a945c11a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM5PR04MB0394; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0394; 3:WD77QWD41DZiQVB/KlvVGTMWpNcp71Xuz8nfQ1APlH9Eak5NoFTbA0TbyX8P001UmPegpBvTvLEgBhOeII9tqXXJc8ZuHNYyOOPuchR/Cr4fWCH8COb4NQ8qEIfphsa9O3IDAfszYRrGqzzBhaaQrJSClQm+xCYkYHVdW3Y0QhmN77n8x7MbQZyaZH6oImZULMM/rk6ucnADJZ1MeiT736T78bSuSEpqbbDpDCIcdueusoWksONueviENAfgiPp1tAq0pcI9I6JmNlOSY7DCrSCg+kU/PQ51NokFVBPkLtj1yT4E1Jj9Z7o4MYKn/5VvBFqVI1FQR+7PE/pPFUwBem14Q4Wfyoj5MUxBKO0HKzsT0kUsSOgTYw+y8x4CURsy0nPv199cM1gJ11W1fuz7RuxB5+pjWZ2jkpnw6afiUk7xrVEnSL5Eq4luTApJ3V1nd9r5sPEBJOEdhc69nIpSdYjrIsuB0mA3nIzJwJ0Tt1v7RkSjqBEuQMbKPsblGY7ksabUdy5xI5idfMTPDyrJVQ== X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0394; 25:WoqHEig7Kwg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UZ2VFf6nC2u20Z+QvZh8NjK2+j3QEp2E4xUWZgVPHA8Yqj5zKLXm+P7mFSDTt8nQYeVoFLxzIcOtBPfEQEgfwRxDkIIBuRpGJr8NAIidtvpmW0toISfN79QX8MB/6JUUOcK0ljWU2LZ+1BRQBAtUTcs1negm8pMsGP2aWvb10uClvmhdYO2XiIF3b9V6UWFqYwJUkl/X6XIE9azkjY7GpYz4ErKzmb4Q9hM/VBRtgaUBjj87/8AFcTHzR3yRKLshT4ayl9 X-Microsoft-Antispam-PRVS: <DM5PR04MB0394485E253D1250C55D15B681F60@DM5PR04MB0394.namprd04.prod.outlook.com> 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)(5005006)(13018025)(13016025)(8121501046)(93006095)(93004095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6041248)(20161123558100)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR04MB0394; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR04MB0394; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0394; 4:rLcbaYcl90hSczdMqmUQbODX3z6Ef/P0U4c2gq3ppv?= =?us-ascii?Q?gV/kBjpd9W39Gxl/59Crv6XJT35IA5Je3UmN/LAboHNh/1/X4wKtGGVBi/Em?= =?us-ascii?Q?nhm0qtZ/ZbtG6s2BFcegj49TBuY4Wm3mL6t4NZfvZKAHYQCaX2WeQkFRa6yK?= =?us-ascii?Q?vt+WHqMjreT68o66PAGkc7AFGgTb1hYN9REtv1NIqTJgDPiOY2fbALj/H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wra9Cqypwh7yEDOBnn4?= =?us-ascii?Q?LdR/rjNcvg7z6Xg3+991xPlQ+H/bwmMBqD5NhSsbaxUdxwc8y6P3ZCb9FtQC?= =?us-ascii?Q?iO9qYnVJIuVCV1Z8L4AWn7jWa3C0vuCf0m00iai/d3RqTv6YpEXYSi4/Z2g+?= =?us-ascii?Q?T3TB91FOVNhAZ9kojxHefdbPZ4H6+k2te6XuXpd0ghpApJch5TbFi/L0nymw?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0325F6C77B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0394; 23:iQbF4pwAMLDUyJxNoPH5u0bITfw/k5WEnkwAPfiZ0?= =?us-ascii?Q?pHEchxJLijM3MUVkLhz2JjryjIgK9PKZg01Q/Bi9NcYoUAAqVY4d6HOBwtpS?= =?us-ascii?Q?aJsZ7RmzQgatO1fNle9i5efdTp22e5pJjK4vp3PE8ahxGBjNoDt+z3hAVYZQ?= =?us-ascii?Q?AvMoyX2f0YPx1kfN/NMvXNc+k+UseN1L5CADTksm80uJLcoOr6pCY+D4LWfe?= =?us-ascii?Q?GR2j/WQ0pUv9hfAYH8Bdc1g+azE4funD/P7uObNR8PO+iP12kX/JRtM9b3DW?= =?us-ascii?Q?fq8gzA/Zu8hMnoKyBEcF4Rffo8E8F6tCLVG5ziEFFdg8CcxQL+/WcL6T3zah?= =?us-ascii?Q?bm82QHJsYzvNbgJR/xrS12ZTP302sxABOcDUo6yO+K3fLJxiNjQFNnGSCD8r?= =?us-ascii?Q?9nTsgCACJqzIbEsF0EEEA/GRum5z5eeukOEhUbd5mCSM8bCJPn1PWfH173OO?= =?us-ascii?Q?pHHI/AAsMaV3HMBgz4eMzsaTSjacXdZizNkW1gqHz2vhsCDDqBywiPf6Bi9T?= =?us-ascii?Q?TR0xWLUmEIHc/q5GAOn/moaT3ReH61kzlISiSHQ5D75Ifc5s66zJe7Jc8+X0?= =?us-ascii?Q?4Vaeg8w1RqJP/usggwUPjB84L1eSOypRRelRPkEpamIGO7hIEaP8Sf95gk7C?= =?us-ascii?Q?j4mVtoagE7U/kRfBoTABQCfUZITnWGnRNPIkosvZIcpnP17CPcXFRRNMfVlz?= =?us-ascii?Q?xavT8pjteFpNLt2tB7OQ9tS5jnnaidReha5jqR6qHyVB8Dbz4CdCyY4rW+fg?= =?us-ascii?Q?Z0v8k5mSylZC7vD8hzBzlIleVGBWRRiBahGLPTWRTB7GWQnmrOF5zURAOtfT?= =?us-ascii?Q?6lI65sQqx7rbXDs+IVG4zYKKIj8tVuzvqLJThpT8v9VN3llIuWCnVeT6YGe0?= =?us-ascii?Q?TCwRDEvQwebG6IBwqBaItvRrpu5y/InnmKPXBWzapE6YvHwlH3RAHVs/qExY?= =?us-ascii?Q?zoTUAYjCOmcNAtrlk4GHJUUYLs3usK+WG2W2o6sDjXSjOX2YyY15tT13HiJT?= =?us-ascii?Q?JHoqRetTLQogWEUZov0cqawiFTke//lHQye34G1qX1d+I1g7Xf94IqrGXZ3S?= =?us-ascii?Q?K7yOI8=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0394; 6:8ju+oIDrCYTixxao0uaJuQmLGV49g6WHKA2zXh395sYTrZDfB6EG/VAQVvJc8dUmPSCeU4WuIqGTgnAASSGjQE2j1AWsuWBABJqfqrti6yHe+MwgIAv0TTDLVcAf0ztHMP+uA26p5rUGhGe2l/r/LORpnN95TfOkuOygsQOav4JDus4CnpiwjccaOPD9WcOq2TWRAF2shJyDZwEk4h8zwKy/yWw37dpBqA7jgAI+Cb1HTlY3cx17dXFxN/vQ12VujRqXjdy21E0JFLi+s794yGWLH3DTnFUFycZpMHUQ6fYFFamsYPyqac+3l1/aH5oUo3TFirQ0flFGqTVYOJi257emNzn5if7yTdt45X7PGSwMer9eoIIULMDLrn6gLuEck9LcdWiI46hsU8SQkEQ0AJOfOmlhvk02oBexj7Vnzp8kaV1+aFGAnw96S4W+UDRsaNy6Cx2ut8aWTcOu/PakKofo4TQ6+e17whTuwaGSIoTYOwcpntpSYIVuqybtvgJLikcV0quIQvaHIS7t69QblwCUgTft4UmdyryabCOBS1c= X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0394; 5:oo23A44XzQBRhIoFSScTqEAvRWfrXeVDHfiE8b6/aR5335O/2v0ajZfFXLpZKG2hNCcNkpH3tb1M8fQGE+OjP71eyNAxpw+YzlMkZC1MrczKTYPsaCK4KI+ybCd1ic4ShtXJ6RzEbbR9F/FWSlRzJi5L65hAhdNbwqyofYR2e+EKI/04GyAa8vagny1ac0uryJbfRhWz/SukeR9T6qKL+wZ0dBstGamVaC7q7QhB9iH0Nc6cHjWr1LYXFul8o49Yicl77y7yMU7ZBSKBnKsZ2aH2HL+kKi8S4nMgq7oEwhhvwZ3Nqf1bf4XOyfmzivZdtTjWOKYh+HzMyDeC3MrC2nRjac4kEUzxkrnXvzxDEI6Dfwr+9jmlUEd//8oSoihvo4qY/Y7ilRiVZL+fwzpohlZdtbrYWUQMIFQKccGBDbeoVIOswzON6kwUvb9xSipXUSOmWQ9+x3zs7GXtHDamSgIgMEL2K35yLbllG3XQDjAnw0HVtoRlQMbPazH/2HHL; 24:QHe4cW0DREnDplYPJ/pzpZsjU7WGeVGOhvk3a8aaDdYFvGy8LuZh8tky+f0iK2aQY5epYoiLPob2RTg1LCSpwJqpIJ9wKpVuC7FqdKJ3b+s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0394; 7:04mHzmBSHEClotezTg7wgaPivhd73WqTXVpBJjQ8cVCEgFpsBjr57pJ4y2cs0OtTJ11cJFtGdIzMPQjO7DyDm9Y7zdRsqEXU3mHyQ29cOGQ2ihgEsTnafZxfoSAFRso7rUWQCvobsfgDFprJdrGC1/CBc0jtWeArQi0MdckwfjuV600/1lUYtOUJwuWJ804mizFI68A51ejw2X5DNnYbS7ulT2vv/ar5KBDh/m3128DWaXhc0hBVUG/X3+cBmRnB1u9wqRBIrR3/IDFiTWU3odWTQQU5drKN/GjnEpq5cNm204yvr6d1Zx6ytEl8gTaIvmBkPnj4tUdvsecgXCtdzA==; 20:IkkUtIztMNW61ZeC+AvXiZ92D/iM4go9RIAN0XIlnbcaapN+3OC53bKmytl4sHzVtjr/s2ey+YroDv24lMDuY5pnPrZvwSue67TI9U4RXKd/lS76bCdMZqnFY/jAZFB945BArqvhEE2qUfahW+yGTS3HLe9KID0f0fkHXJgt+Qs= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2017 23:27:19.6764 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR04MB0394 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 |
Looks fine,
Reviewed-by: Christoph Hellwig <hch@lst.de>
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);