From patchwork Thu May 25 18:43:15 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: 9748917 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 5BF8D60209 for ; Thu, 25 May 2017 18:43:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52D582679B for ; Thu, 25 May 2017 18:43:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 477472836F; Thu, 25 May 2017 18:43:51 +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 AC5A6269DA for ; Thu, 25 May 2017 18:43:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1036429AbdEYSnt (ORCPT ); Thu, 25 May 2017 14:43:49 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:15582 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1036480AbdEYSni (ORCPT ); Thu, 25 May 2017 14:43:38 -0400 X-IronPort-AV: E=Sophos;i="5.38,393,1491235200"; d="scan'208";a="21570880" Received: from mail-co1nam03lp0024.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.24]) by ob1.hgst.iphmx.com with ESMTP; 26 May 2017 02:43:35 +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=IO7/jOxNgEJxf4kz2i/Vk2GGlAz6EqiF5/K2Qp9IiXU=; b=bEEBmpoFm3XCZ47cv864ljpra/G07YOg6X8sm+aQNbC2l9hFCBV4789mYzjBSwS87hTEDVdcG/hZp17O5Uf7PO+UcLhpx/Uk9yfI1Ym5Y5bXk+9eojetI2A2QKaRwL/kKXR/jTGDO+q1sb/PUZwZocabd6w2zWJyXzOwBZFtXsk= Received: from MWHPR04CA0104.namprd04.prod.outlook.com (10.174.173.45) by BN6PR04MB0356.namprd04.prod.outlook.com (10.173.198.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Thu, 25 May 2017 18:43:32 +0000 Received: from BN3NAM04FT062.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::203) by MWHPR04CA0104.outlook.office365.com (2603:10b6:301:3a::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Thu, 25 May 2017 18:43:32 +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 BN3NAM04FT062.mail.protection.outlook.com (10.152.92.212) 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, 25 May 2017 18:43:31 +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 25.BC.45291.2D527295; Thu, 25 May 2017 11:43:30 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Thu, 25 May 2017 11:43:27 -0700 X-AuditID: 0ac94369-166ac9800001b0eb-10-592725d25934 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id DA.E8.11415.FC527295; Thu, 25 May 2017 11:43:27 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , "Martin K . Petersen" , James Bottomley Subject: [PATCH 07/19] scsi: Make scsi_ioctl_reset() pass the request queue pointer to blk_rq_init() Date: Thu, 25 May 2017 11:43:15 -0700 Message-ID: <20170525184327.23570-8-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170525184327.23570-1-bart.vanassche@sandisk.com> References: <20170525184327.23570-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsXCddJ5ke4lVfVIg4fT1SxW3+1ns1i5+iiT xcZ+Dou9t7Qtlh//x+TA6jFt0ik2j8tnSz1232xg8/j49BaLx+dNcgGsUVw2Kak5mWWpRfp2 CVwZE2ddZCrYxlWxZvE/1gbG2xxdjBwcEgImEvPmJnUxcnEICSxlkui9d5wJwtnBKPFx83t2 mKKOm+UQ8c2MEtfOXgQq4uRgEzCS+PZ+JguILSKgINHzeyUbSBGzwCNGiaOnL7GDJIQFUiR6 OvqYQQaxCKhKbPkUDxLmFbCX2L7iI1ivhIC8xNktO5lBbE4BB4kvUy+ygZQLAdWcuOEIMlJC YBqrxJxVD9kgegUlTs58AtbLLCAhcfDFC7BeIQF1iZNL5jNNYBSahaRsFpKyBYxMqxjFcjNz inPTUwsMTfWKE/NSMouz9ZLzczcxQoI8cwfj3SfehxgFOBiVeHg5HqpFCrEmlhVX5h5ilOBg VhLhVVZUjxTiTUmsrEotyo8vKs1JLT7EKM3BoiTOe05maoSQQHpiSWp2ampBahFMlomDU6qB cZpP7esU/Sl/Dv5YvfF8utxemezS1y3aLytPrH1pJC9+Tkmt7vNKq+O7WPdEGKwpvf5g1cUN J+fu4b+c8comeWuIf2rXZ1dvadbjU73uPRXdfuOC4eGex13Wsr+/hAeXH5BWnL5ueX3+J58Z Yr4mXu4lBysPmTE9vLyrsKGl2OtKYniP5MvyOCWW4oxEQy3mouJEACNEvnduAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNJMWRmVeSWpSXmKPExsXCtZEjRfe8qnqkQecyU4vVd/vZLA7+bGO0 WLn6KJPFxn4Oi723tC2WH//H5MDmMW3SKTaPy2dLPXbfbGDz+Pj0FovHtDXnmTw+b5ILYIvi sklJzcksSy3St0vgypg46yJTwTauijWL/7E2MN7m6GLk4JAQMJHouFnexcjFISSwkVFi5c2z 7F2MnBxsAkYS397PZAGxRQQUJHp+r2QDKWIWeARUdPIwM0hCWCBFoqejjxlkEIuAqsSWT/Eg YV4Be4k7Sz+BzZEQkJc4u2UnWDmngIPEl6kX2UDKhYBqTtxwnMDIvYCRYRWjWG5mTnFuemaB oaFecWJeSmZxtl5yfu4mRnBwcEbuYHw60fwQIxMHp1QDI7vAjl33jvBEfqg9KiOqtvOv4xxB hRNiLD5r37TLuc7eu5TjukHe4a5Tq7LL2xMsq24+vL1QzFDJf4nn8Q8HNJ3la2yfNWS9//Do 3ayVgUdiWF85q+rOyGD9vdF1/cTlK5iafi9fsOGCkdotqSMPFM9k5++/NPmTwc2Nn+dKlaWv 6jz8ZOM+pSVKLMUZiYZazEXFiQBr7moVvgEAAA== MIME-Version: 1.0 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)(39410400002)(39840400002)(39860400002)(39400400002)(39850400002)(39450400003)(2980300002)(438002)(189002)(199003)(9170700003)(1076002)(478600001)(50466002)(36756003)(72206003)(47776003)(5003940100001)(189998001)(356003)(86362001)(575784001)(48376002)(4326008)(305945005)(5660300001)(2906002)(8676002)(50226002)(110136004)(33646002)(8936002)(106466001)(38730400002)(77096006)(81166006)(50986999)(76176999)(6916009)(2950100002)(54906002)(53936002)(6666003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR04MB0356; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT062; 1:bhdCTKylJG10Qtq0mzHJ+ONEqhCM5ubNVpZIOiaAvcs4ZH/XRhQeWUuIYv5f+Z0G7rPBwQDRGewYy2iaYb2Es9PpC6TGj6XF9QuCBcEj9cA0heLtPz6pIg1uIOqEDVyEzd5Csq2I8Kre8h29A5K4iuO43lx+B4GsTtk5jqsClbpVWHoq/An/CSEGoaS2tlKmCG9Iwy/PgsIEpHgZ+93L0W6KRqPZuddQzQZPMuB6CfcG1C1i29oIjIe2xGQVHjEDlGSo0wmgaInsBwiPKRrpDDsNddxd8ZJMBUpberhRFWHDSmtjO9g8GWDUXNFcUbX7mV+r1EugP/UXWyS9otgXrp9AWws4cx8/MOqsdYtAfVIP4PW5dbR50PLgDyljoCHwcIbTTRg0DbobLwmJYo+RoyaBhMLl1ociEr2gY2OKLeeVt+Vws2iLHxJp9JWqrIm8qv551w9LbDlgtvzzbYYjbdzba11Q0VPallJD5kKVC9bsPL2n5va2m4udZnfmYSGteOe031QSKXB+Z4x6fqbG0ck05FwDWfjkvtveGnYiotg= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN6PR04MB0356: X-MS-Office365-Filtering-Correlation-Id: 8a6062fd-e97c-47d8-f9e3-08d4a39df169 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN6PR04MB0356; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0356; 3:oNUrFhLsQlVc2yAPbX9dvzLLFMg22zXEFWGzeHpIB5tXwto24EH8FBMBfpQnavRzKw+rbv/I27FXrQRLNxlbYUqOFmddRbhqtWWC1tY2IQBat5eSCtBd4Ghs0ueE7Z9HbZlkAYKhjbkXZy1vWHLYGyxqAryO3h4B08d6tJPEGHy5O1bEIZqyjJNTCuynxqtc+KpUcjXwI8IoQqrBcAkzNJuRNouSz1sdPCyu3Fl/fsGAyICCrwtaluk145oXjPunz898Lun6ckpnkNWVJWLwKAdBA+Yq94Zn+CS8CDpZ0sgRlZgCOaOTXmBTQrbDmoaHO3Foxh3cHoEUf7GZwSKSGlP2lgV8xaF1HcANTVYWGyhgPPVCsdxxaoWg6tGB+wem7jVpdbJYeuze9JpTUKEJHxl5XIESfUzWmMfce0+tIXkWSRjgb/6Gt153KesQ9mWTmpyH6kECIABshlUgWlpuRNTS/hOekNDvTzOAf5kEGkuFyg5DhaeUkX7jprcnJBXE X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0356; 25:mZrRwpF0wJigePEtIjFtyEy7MVIL6q6i6lNGFvfj1kDK5ufo/yvotITHUWp9KrN9pgv8N0CZVrPZqtQC7bjngtn9MbN9BSRXtmDKPwH4fmvISwM8t7lqgTwwe13t93lkdOXgd0wQvsNVzPwOJtaXua1nMBIp6adjG9YpJKcYMqLDPN4qYKLB7SJXEiH3k94ybZWMAjKWDnC5qFfppAClT3B90EQAGnbi+QyrKK1oH9StXWx7f9uqAsUMzEbd3bGsptu7yHotMRh13U7v0wLqr+fEt0ElLD1EXDweaLvGCqA45NZUwsw8+jz7OZoDFI9HiQ7cPWeC1fw+JGvEWBq9lDdh0dnfuCb41bqXslNQwU3meDq9aU6Qa3di9hN1LmIsWUzfDr3iruQZ3yAd3g+5fTZRfd+xaju7KLRnM+KXfWeEN+ChonWd7my6RwWv7snr86rYKOiIk3mvhHoNIJl9ywxEWTwuCgfzE8ptgWva/Z4=; 31:kmSbGBqzGq+yz4dn4Y5jUdR00f6QV8PjMdL8ctRJeMG1x3n3yudhEIdQcLVVJ4FXhDUpQx8thXow7aHg+yKSVuY4Uzq+1/fXIdbBe3ZPVY8iWTz3pKTHxt39gumS9ALPW2Cs48i2QymQUvB1TcEVzOviCkjjNobchdSqVpXdPMvJkXniPmBNfMviz569zdbjvS3ZF1MJjhRP3fYihm+cpWVHE2YRsCM1ts97DbzuDeAdEbTqEOwcyQ0WF3PaEQZCDcRRN74zXexBc3MWiqg+Gw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0356; 20:UnWYUYPQFTyTeGtTtLdnpjg6iKyhG43+75s2vWfVIstv1IcG026/3qaIE4Lm60q4OaH6pUpEJNwevOTM1+WDdgEUrV9j2unhqKDHf+oEErQWYC6tIbLq1/bHzw8ThUWts/Ax3L8c9eYeyinBLx0xMk5eaTmTRWcFARXRoCN7p2oNp/f2BxUjCvu5eoCXY7UatbTlQHk/mWiF+jt47JG+nWKmgN/vIOoIe6N1msHeL9aP10GAoI2Txck86HYY551RoA2ZswpLB6QaJ7gT69IaQW8BTC6Hle7lIXSVFlhOpUijFcoQ7v1fPNnfgGZctWOJoioSqEZluBcoF4tiwMSqAr9OAUsK4Bx518eH2fL+31pECvi2VAlSjnc/ia2A9vjZiVnjzisNQjF7b6Qhb9UyfbUq2srA3vd2dgYIxwYbQtSuS5rH9qlBvNMlbVGSF/ZU1txXMYYghNK7gQj0BTw0hSO4BOdN8jbCScRjChXxlkC1p67ncyOQm+UR09B1tQJt X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(146099531331640)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123562025)(20161123564025)(6072148); SRVR:BN6PR04MB0356; BCL:0; PCL:0; RULEID:; SRVR:BN6PR04MB0356; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0356; 4:psvni+4vItJWMCNScDo1OE0kgLUZliYyXhn8U0oLFUZkrTN7cd0w6KYbmxXd9fPIPn6ddZzKc1wRWNUNqT6l0v8v2ku1A7IfoImoCPOZRxnSyN940v1KOV7D39aDJmSRJYGPwyhZkQhSbH57bXIyODdeTFPXdoW9rSegZA0BeVXQMUtrqOWBnIalsB9TJmlbz/qBZvHfSaU7CA7GeNjc7ZLiX/AhYeZsM2u3q7WJVb29xKK+3yTBnUHxnhZMBATD/taQVPgvPcrThnTTPyytoDxjNdZp3Z58LJaAsj6wI5ohRD0b7YYJsotQ7K7OI44IMd8REHyepeaSxtV7JZGuHuRjNkpVMvc5N+oQZm5OpfcI8GNSGGLaRVMxekIVfQyv947weweZ9HQLzmlEqbJu84ENtv0mxeqB/udv5Osu7odrfTjI5RXqpnaEanwir/OdXWGzE2UAvk43Q66aVh/fqq+qBXB5rzeG1AnjrJqoTC66oPZDz6ey1xt46x0GwWvqELfYaStKn1Tg3HS+/wyZNMRUxn578ZWSyBN8JsEAjIdFT7VhakFnl4Woi9n2+BV5q+U0yamODRJSFGxBo2RzDqA5ZuxSjDZL8vbecAQOsJhTgT3Iw6VEJyE4vv0FBTt+MYRfwFpwX9E0EHzFuAEcb48Og0zErc9BznodyUnw9i0LDzkTyFOWKsJgloe8hNEJY6MonysGmCx7bXs9FT+gmnQwOIQ2U8xySRv7tQIiC12+lc46wvFhSQNjasC5G/n57zDQrCsiNsW0gPdup6mF3ImIg04mZV9ZOoPQGNLEwozc+FzduauWue9C60/Kd65L1Fx38PvWn2HkA0ASoAeGzS5BQuIX2oZ2wftGn5b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DSERFhCQmlgN+SySjfm3Y6rMYTLQAfY3MizSpQYMwAWnYgnvlwsFhFBK+3VYkxjsrjvhBMkf1qY84rXOR7XUm0w+053Yy4T7+rhlq08QKCBXSx4eA+PVb556hF6qFcukdtlh+hbK5uA+rN+sj7wMdrYKnDM=; 24:LMelBY2Pdq0yCV5HSupC9vTsTrvav+FTcVzN6QCJzesVotegrsnZ19v4BsHFqg3l5u36Cz2ha1jbHq45iVXaWMk0kIy9Pl6pOupbQu16HHY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0356; 7:IgWo+HqOnPh2CiPKMjThXc8/dGxwQZdFiwjmHTiNM0BzkZzKVn0U9x7gqxJ/ss+AJhZDJKbE/FUcIdQCVDWIs2XwXgN4puiM/5/l4JFbibuBdOG7CkYuGBkNS4DFxcfVab3iA9BeHib9G10WZoV6KejQzqtywWJA5JG1cJq/SjF8oZcm4tm+zJEjb8gTvTaonTnbOhjBynw/jJFZHLKp5GEvah1RmB+zqwWLYsmhCE/bWoJVTS69udv041xMQpzWLjo5uaM2c36S85CWl7TjkBzGrOhcCd+gEh34ApxfL5twN3BDZl9PjfdUIQ/p7zD/9tVUrAHl+pZJLDkQK3SIOA==; 20:16Abj94VrQ9u+D2auHfLcJh8l+kejotHmiEabPI07GRmAdKqCTQVKfsboASxcvXZYxAOCas85UrUbm9r8/weY9ee5NRuRh5txEgsMRogmkoZpZQLpf0sKrIa7Zt9XGqql3Mn+itz1jk3bBT4tspYIeA18qqB87bR5jKOIGlXbCg= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2017 18:43:31.6529 (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: BN6PR04MB0356 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A later patch will add a call to a request initialization function into blk_rq_init(). Hence make sure that all blk_rq_init() calls specify the request queue pointer. Since TMF callback functions in SCSI LLD drivers do not use request.q, this patch does not change the behavior of any SCSI driver. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Cc: Martin K. Petersen Cc: James Bottomley --- drivers/scsi/scsi_error.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index ecc07dab893d..97d5a0bb7061 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -2274,7 +2274,12 @@ scsi_ioctl_reset(struct scsi_device *dev, int __user *arg) shost->hostt->cmd_size, GFP_KERNEL); if (!rq) goto out_put_autopm_host; - blk_rq_init(NULL, rq); + /* + * Although blk_rq_init() is intended for single queue block + * drivers, this code path even uses blk_rq_init() when @dev is + * a scsi-mq device. + */ + blk_rq_init(dev->request_queue, rq); scmd = (struct scsi_cmnd *)(rq + 1); scsi_init_command(dev, scmd);