From patchwork Thu Jun 8 17:33:48 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: 9776153 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 4C9A7601C3 for ; Thu, 8 Jun 2017 17:34:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33580285C3 for ; Thu, 8 Jun 2017 17:34:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25E18285BA; Thu, 8 Jun 2017 17:34:34 +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 9F917285A3 for ; Thu, 8 Jun 2017 17:34:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751504AbdFHReZ (ORCPT ); Thu, 8 Jun 2017 13:34:25 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:5532 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751344AbdFHReF (ORCPT ); Thu, 8 Jun 2017 13:34:05 -0400 X-IronPort-AV: E=Sophos;i="5.39,315,1493654400"; d="scan'208";a="25181131" 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; 09 Jun 2017 01:34:04 +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=mKVzKbZ6IVxm7Rj/LjaU2N7fYJ3cav3m7r+F1lZecKE=; b=Vn3b39F97+JG4CjxF5LkPKJqAs4LCbzIBceSy22jwbkBmtd0xxyAbggwwXin3iiD895Xn/KjQkkbUG4Fs7Xps1u8USFX2J1vl52SwEyATHBY7iK0eMl6HF1TmJE3wYdd2a4dnfx7ibScYvjZxJToi6GGF+xaEC3sRCE8g+AFRag= Received: from CO2PR04CA0081.namprd04.prod.outlook.com (10.166.88.49) by CY1PR0401MB1467.namprd04.prod.outlook.com (10.161.212.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Thu, 8 Jun 2017 17:34:02 +0000 Received: from SN1NAM04FT005.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::206) by CO2PR04CA0081.outlook.office365.com (2603:10b6:102:1::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Thu, 8 Jun 2017 17:34:02 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; 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 SN1NAM04FT005.mail.protection.outlook.com (10.152.88.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1143.11 via Frontend Transport; Thu, 8 Jun 2017 17:34:01 +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 3D.59.51736.88A89395; Thu, 8 Jun 2017 10:34:00 -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; Thu, 8 Jun 2017 10:33:58 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-04-59398a88585a Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 8A.E7.18148.68A89395; Thu, 8 Jun 2017 10:33:58 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" Subject: [PATCH v3 05/12] block: Change argument type of scsi_req_init() Date: Thu, 8 Jun 2017 10:33:48 -0700 Message-ID: <20170608173355.25898-6-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170608173355.25898-1-bart.vanassche@sandisk.com> References: <20170608173355.25898-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsXCddJ5kW5Hl2WkwYSlBhar7/azWaxcfZTJ Yu8tbQdmj8tnSz1232xg8/i8SS6AOYrLJiU1J7MstUjfLoEr4+rcvawF52Qq1tycyt7A2CzR xcjJISFgItF8YD1LFyMXh5DAUiaJFzdWs0I42xklZt86yA5TteX7czaIxHJGiS0nvzOBJNgE jCS+vZ/JAmKLCChI9PxeyQZiMwsUSpzZDREXFvCQ2Na2ixnEZhFQkZjfvQCsl1fAXuJZ43Ym iAXyEme37ASr4RRwkLi2cwnYHCGgmr0N38EWSwh8Y5FoWH8RqllQ4uTMJywQyyQkDr54wQzR oC5xcsl8pgmMQrOQlM1CUraAkWkVo1huZk5xbnpqgaGpXnFiXkpmcbZecn7uJkZIEGfuYLz7 xPsQowAHoxIPb0KEZaQQa2JZcWXuIUYJDmYlEd6jBkAh3pTEyqrUovz4otKc1OJDjNIcLEri vOdkpkYICaQnlqRmp6YWpBbBZJk4OKUaGL0/HZxk4H3MvTtJi7vkTPeUmrb1582M03ep9jg5 TLloM3t1iwi70iZ2C7/va+9e+9QT861RfHdJYcpM7tXfOV8pSk3mevYidb/j1RdCR748TXla 2JbosaJ41ibTY79sbVfu67zvpFS8Z45G5YPf4gGHjHfv2f5WbA/T2UP+CqHGUZul5zyTu6bE UpyRaKjFXFScCABpfXboXgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFJMWRmVeSWpSXmKPExsXCtZGTTbetyzLS4H+XscXqu/1sFgd/tjFa rFx9lMli7y1tBxaPy2dLPXbfbGDzmLbmPJPH501yASxRXDYpqTmZZalF+nYJXBlX5+5lLTgn U7Hm5lT2BsZmiS5GTg4JAROJLd+fs3UxcnEICSxllOi/dpIRJMEmYCTx7f1MFhBbREBBouf3 SjYQm1mgUOLLhlYmEFtYwENiW9suZhCbRUBV4vuXF2D1vAL2EptvH2eFWCAvcXbLTrAaTgEH iWs7l4DNEQKq2dvwnW0CI/cCRoZVjGK5mTnFuemZBYZGesWJeSmZxdl6yfm5mxghvo/awXh9 ovkhRiYOTqkGRmu2jHPbLp7a/2XPQ86ASdyXTuw3zQne8H7DkTOxpvNf11Tf/z7pRJXJBanA 4D81bUH5Zg8ipFYfcJo/PY6pzas7wu7WyvPbmUMnXrxTxd7bWzqN2U5Jfd/XkFoV25gF53um tIgHr63Sv7FsoWNrlSnf9CNtQV9+Kl63E/NfxFAg/WT7qhvnriixFGckGmoxFxUnAgBWipyB rQEAAA== 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)(39840400002)(39860400002)(39850400002)(39400400002)(39410400002)(39450400003)(2980300002)(438002)(189002)(199003)(9170700003)(305945005)(53936002)(76176999)(50986999)(356003)(54906002)(2906002)(5660300001)(6916009)(36756003)(2950100002)(6666003)(575784001)(86362001)(8676002)(81166006)(47776003)(189998001)(50226002)(5003940100001)(77096006)(107886003)(48376002)(8936002)(38730400002)(1076002)(72206003)(478600001)(110136004)(4326008)(33646002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0401MB1467; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT005; 1:epJxQhGuGWCAHITqdX1nAkC1NqtFoMf9rslrzX+i8VBSsSQzxFcy6BcIh0kATkHQBTFo0l91U2HPhGcWZGtwhRqhMD7y+yQfVqvQi2pJh85w0UWc0qM76/+z+KI59/I+Tt69F+snAiu5g7ND/aA9bwc9nByjPGwaMoKJsuuzZMUP1s70flDFwa8qYQXG1iv6QKwHxn/1r0Pj1+paf1Ynf4A8pxY+P6GmKhlE3bmFM6n7+Op/fy4wSN4kjd/Le1e7LBIMhjx5camqDyjVjW8KgNE+SV+SUikkPCYltLTSS8Ru1hz+QeLvO1RVvU/pSVY/iw1q12wjwflUQ2gehFUNntxoll/vsUSDN2zXaKnv2lBWXTFO0s9Qyz8iWR7NEYYdHgkEI8PrlzijqXSt8GZ5/kbODHm12hu9g230gfFAML83DcymHJTx4r2+LI6XuCjIamvqflNSFgMaJwpowmXyIIkdop0XaoPQw8NTNDkTvia+Jt3AJ8XOHBXyOrDFRx1/bXR4PVF4X/utGhzb5+iOmw== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0401MB1467: X-MS-Office365-Filtering-Correlation-Id: 7524eca9-0ca7-4b18-691f-08d4ae948d8c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:CY1PR0401MB1467; X-Microsoft-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G1icBUMFtQKgsOJU5nDaWaFvCeHo=; 31:ctQ7I7fchGFxh0Wb0sFlhMUcmXdejcyu8r6AEnzbEY8sEp1KjicJa2COWFS3fUd19Sblc01GLDS5YFpwEB5RRxgIvnKw1Insr4M7ypQIWJ/bVUIxoWa0Rf9rVu503O3s1Wh99hIZ+zjbu8HwsnqvPGZoxDA9DowH6eQ0x4a+m2Tlhk5xj6zmpgtDOb5rVUwv6adiP1Y0g/2PbWTzLhRTzV7TgY4XYns/h2AKv6iNYF6OTtzaBRgAInxJy9p1CfJ3 WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1467; 20:fyKe0hrIBaRnNf54+kLpYXAjMm3TSR6bSJQ9C5eajDGmV0sakKcSshzL8d2HqO1a6Vfoz5zmInmre8RIwVXdEGPp7ljZnrCSxXDaDB/69Yq8j+dZA+v+bqmJ71P+pCDryOSdx6iSXrW0My15/Xmrn4ZhRg4A8Udq2QiGSYHzKXUOZYVoSvqU7r/8M9GgHzD8hs5j/QN3RrKey4d2kXLkOsuIbAtBxIzivGexNd2SGbOxUW3AXGbBmMgxcT8jZQ/QF3fg3TuJxepP19amgNURnH6gdySB0lG+Nz8TFfu47l4Ku7USO/DVIJ2PBmNgGlzJAwnyQjWDWqbVxDxWp2UbD06oLzCOFk2rNdaM7lviC4OW12rhaN0KmzWDkK1Uh9Eo6DW6SKpD+6Y9iLhkJ+vdlqrR0my6LERluzlEqFwof0r+wcetlv8xxL9RpEHZF4PMdRNkHhTZd1RBly5mkwjV56gbdr4y084VgQVv4vdIS/s1zS1AlFPxQZjuhR1ALBo9 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(146099531331640)(42932892334569)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006095)(93004095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123555025)(20161123558100)(20161123564025)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0401MB1467; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0401MB1467; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0401MB1467; 4:Rydtz4mTdM8v9rLieCaZEJVFJkIHwf75ZJeIty76?= =?us-ascii?Q?w7/B+H5tiXJHpyhILO0cHCbsq1s7m1SXlx/xxU2pd4pN+mnNOqYbZulBVek8?= =?us-ascii?Q?KYVQJop7HpRbkTAAqepY3tiWE4uUZ31NiJEGKOpvS30LZ0PWmfNcFhrDz4yQ?= =?us-ascii?Q?SPCafERYfgv6tNXFNDjPFvbTv1x6bet9e80Gzj1YHOCxKOqiWW6UZ888Ejgu?= =?us-ascii?Q?S+QwexMwya6oEp5bAr4/VUXOECb5m+mNLeQX1TpKwTvO9cWvTKVFwtyMHJy5?= =?us-ascii?Q?GswXqkIZZNyqMSQQRHjZSadit8ofUxaAQRrJXOF33PWzHmn7Yxez7J/p3hIO?= =?us-ascii?Q?JRH9l9eNc3Bqy7JOF9RIHk0kzQuMh1Df1FiwRy5Ve7NAl4/wN1Wb2qS/bFW4?= =?us-ascii?Q?tYFzGzk5P668bxMofPeie4l5qT1pVoXot73d3lRZMLf0Ty23QwrL9AtNgMdm?= =?us-ascii?Q?mRdmrwS9z6HDs25oq4ljILA4AnC870IL1nKUSV3lrf0gfPPVmrU7+ySMaVdL?= =?us-ascii?Q?EMmjL0JEnXaVyzPLdgmtaC+j+p7v0hH7MJcRKgn/vvU/1FOWjExugHtBFdxw?= =?us-ascii?Q?SF/suGuYw5pAhs3QN3F3JXmIqLd2qDuAC0j5uwiRl10NFQdMendvW58oa8eB?= =?us-ascii?Q?3nIZQCTvT9Ivg9DLmgS7ceXIZqWYP2C37wAe1AREwCwuUA777up2qqGnzMA/?= =?us-ascii?Q?DSe3LZXO8+nj84RsA5qLt/dWLx/iVgi8udqTTiG8sF8f9w9BcTu6Q51zFdrW?= =?us-ascii?Q?3H2MccYvaNmBYoJTZTXVJcA/TwraapxT50tJHhMAnyJbvZuespXn4zDG7hrC?= =?us-ascii?Q?D+o9Kjy4jj1FPNrYLcb+pb8qPvRTwABSB3gYwAptt1//fWTSLPYjk1yS9kPt?= =?us-ascii?Q?V7EtITxuUi3NiIgk5JVK7WGj32b92I8Y+8picf9JF3XUlLW1oM0Dy4J9BI6Z?= =?us-ascii?Q?v7ISwRWWhoo/Deb1vwYQ/yjSs6hU7zn/1SW1Rv/uX8kMozpIKj7i2x53Gpzp?= =?us-ascii?Q?pcYMThoOpkIa8zBy5wwP6t95N7hXdiExPD61+quVRQcwXos/tljDxoV11ZH+?= =?us-ascii?Q?ZI2TFcJITbw8WC+rTjhOLGa5sJesuWFknBfdjyTRAwKbaOK9pNzEb2Lh+dGb?= =?us-ascii?Q?FIL9W68tdG02eN9ShqwDW884UqskZ5J1NloMKPq8b3V6id4+mPChWXTd0a5g?= =?us-ascii?Q?hLvc4rjCAQIX8j3ihqo3YSFz5ws/qUkcyBrxu+95JCP81TYYHp96951xRZR3?= =?us-ascii?Q?btw2h8Q8Ulre+C/T7Q96divFO1tWwxZBZtTseBGSa56nDxkRB9jARRmL9Ec3?= =?us-ascii?Q?Ds515eGO9qJ8vTDfbPO43o8=3D?= X-Forefront-PRVS: 0332AACBC3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0401MB1467; 23:pYLm8o4kb6Vb32PAOZ1h2mKNA8SIUlc6m5m8F+4?= =?us-ascii?Q?7McLeJP99MN2O83ZoeYXvNq6zcCz+D0NcpmG4gwea+UuhZdA4MerTN+hACEC?= =?us-ascii?Q?9Wpbop+sN3GLvFsSOo/d+X7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Rw6ZBBxOayIxUEdcteR2vmVcIOJHrUnzgzIeA8DXUorkemXcdQY+n8Kl8+c2jYwGfN3aOg1KgCaR8wGvhaLtQTJc9gsfCcZpMzAHLWBc9kEahRn2E48NsaO9OSE4w1y0Xb6O3uFhu46Z3GitNeMMRls6izMvVJdkKKwXf2u1WY+GFRoyB7uHKlx+4rkt; 24:+xjVYRVdq1r58PZLsBZR10HLQDiHiINaDe3z5WMMFuz8wR9stDzoDCyFZgeAuLCxhtkZIDXdReM0xpn56X9sjavH3EueCvmmCZEmnPC9XK8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1467; 7:dXwDCC0diFUVLk6+Th5oWuOAJwV1IUuS7EAwq6YuTf7Ys1hrNUR4OxaOq7CCaZCbak3qvV4sS8ytY+UkGR4JKb3yS7hjZb7eElh8TDm9IWdocQ0eoZK9I4W5lHNjX6iELt12CrUE/anwhQQ/OlRB/Gx3I26i9dlcDowARDwwwLLzWxor9/7XljMxXukAj7RVX2nvLXBJlNuC/2dO0v7z2yGDne7CQ5Fg7Q2WFtdSelf3OuG7BUaX1qCpsGIvGMAtv6gvMBGzr5OcwekCnhnW0tTKBUII1xpLXapaqrOpZZR2ZSViVixrmb236koHaqnha5I1MCy+R67J/KWYxlvoHQ==; 20:fZVk3d3PautgBlpAjx2qBCHIGppzg2L81433gGN8XnFF/bfEMWqMZY0XrXDwOFcq/r9sjklEsFE8h66DCEzMTemK3VW8MNsndzCfF8hOWxvBfaAzPbSLV+OOr3GlTzNEo79gi+d5mfSKsH0IgL5NVS183vK7w3oL0N9LEzFFc8g= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2017 17:34:01.6139 (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: CY1PR0401MB1467 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 Since scsi_req_init() works on a struct scsi_request, change the argument type into struct scsi_request *. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Reviewed-by: Martin K. Petersen --- block/scsi_ioctl.c | 10 +++++++--- drivers/ide/ide-atapi.c | 2 +- drivers/ide/ide-probe.c | 2 +- drivers/scsi/scsi_lib.c | 4 +++- drivers/scsi/scsi_transport_sas.c | 2 +- include/scsi/scsi_request.h | 2 +- 6 files changed, 14 insertions(+), 8 deletions(-) diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index f96c51f5df40..7440de44dd85 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c @@ -741,10 +741,14 @@ int scsi_cmd_blk_ioctl(struct block_device *bd, fmode_t mode, } EXPORT_SYMBOL(scsi_cmd_blk_ioctl); -void scsi_req_init(struct request *rq) +/** + * scsi_req_init - initialize certain fields of a scsi_request structure + * @req: Pointer to a scsi_request structure. + * Initializes .__cmd[], .cmd, .cmd_len and .sense_len but no other members + * of struct scsi_request. + */ +void scsi_req_init(struct scsi_request *req) { - struct scsi_request *req = scsi_req(rq); - memset(req->__cmd, 0, sizeof(req->__cmd)); req->cmd = req->__cmd; req->cmd_len = BLK_MAX_CDB; diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index 98e78b520417..5ffecef8b910 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c @@ -199,7 +199,7 @@ void ide_prep_sense(ide_drive_t *drive, struct request *rq) memset(sense, 0, sizeof(*sense)); blk_rq_init(rq->q, sense_rq); - scsi_req_init(sense_rq); + scsi_req_init(req); err = blk_rq_map_kern(drive->queue, sense_rq, sense, sense_len, GFP_NOIO); diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index c60e5ffc9231..01b2adfd8226 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -745,7 +745,7 @@ static void ide_initialize_rq(struct request *rq) { struct ide_request *req = blk_mq_rq_to_pdu(rq); - scsi_req_init(rq); + scsi_req_init(&req->sreq); req->sreq.sense = req->sense; } diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 378cf44a97fc..c5a43a7c960d 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1136,7 +1136,9 @@ EXPORT_SYMBOL(scsi_init_io); /* Called from inside blk_get_request() */ static void scsi_initialize_rq(struct request *rq) { - scsi_req_init(rq); + struct scsi_cmnd *cmd = blk_mq_rq_to_pdu(rq); + + scsi_req_init(&cmd->req); } /* Called after a request has been started. */ diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c index f5449da6fcad..35598905d785 100644 --- a/drivers/scsi/scsi_transport_sas.c +++ b/drivers/scsi/scsi_transport_sas.c @@ -215,7 +215,7 @@ static void sas_host_release(struct device *dev) static void sas_initialize_rq(struct request *rq) { - scsi_req_init(rq); + scsi_req_init(scsi_req(rq)); } static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) diff --git a/include/scsi/scsi_request.h b/include/scsi/scsi_request.h index f0c76f9dc285..e0afa445ee4e 100644 --- a/include/scsi/scsi_request.h +++ b/include/scsi/scsi_request.h @@ -27,6 +27,6 @@ static inline void scsi_req_free_cmd(struct scsi_request *req) kfree(req->cmd); } -void scsi_req_init(struct request *); +void scsi_req_init(struct scsi_request *req); #endif /* _SCSI_SCSI_REQUEST_H */