From patchwork Mon Jun 19 22:07:54 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: 9797937 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 404B660381 for ; Mon, 19 Jun 2017 22:08:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2986526B41 for ; Mon, 19 Jun 2017 22:08:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DB4C274D0; Mon, 19 Jun 2017 22:08:38 +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 6D6C526B41 for ; Mon, 19 Jun 2017 22:08:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752676AbdFSWIg (ORCPT ); Mon, 19 Jun 2017 18:08:36 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:53868 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752671AbdFSWIb (ORCPT ); Mon, 19 Jun 2017 18:08:31 -0400 X-IronPort-AV: E=Sophos;i="5.39,363,1493654400"; d="scan'208";a="129340289" Received: from mail-sn1nam01lp0117.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.117]) by ob1.hgst.iphmx.com with ESMTP; 20 Jun 2017 06:08:17 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PEv+UOlfXrN8ZZbkcao01gzIH9LD/FGsmFMKmG5cZmQ=; b=d3tvsB2lqS++Bsw3QSaQ8RpAeJPvPRTt8uLIFDb1QG16nWW+78YAsWR4pN+aRskdOstx2fCyeDwJKEv/MfEP9jQcftob0SnpoRM8Vm1sGiNwq0GnLpIlohoNLbNDWwzeXSS5A4YldkMsF2B26MuMt1CIkZuH5pbBSTKQCuo/XDQ= Received: from BN3PR04CA0004.namprd04.prod.outlook.com (10.166.70.142) by BLUPR04MB545.namprd04.prod.outlook.com (10.141.29.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Mon, 19 Jun 2017 22:08:15 +0000 Received: from CO1NAM04FT055.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::202) by BN3PR04CA0004.outlook.office365.com (2a01:111:e400:7a4f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Mon, 19 Jun 2017 22:08:15 +0000 Authentication-Results: spf=fail (sender IP is 63.163.107.21) smtp.mailfrom=wdc.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=wdc.com; Received-SPF: Fail (protection.outlook.com: domain of wdc.com does not designate 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 CO1NAM04FT055.mail.protection.outlook.com (10.152.91.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1178.14 via Frontend Transport; Mon, 19 Jun 2017 22:08:14 +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 23.03.02805.D4B48495; Mon, 19 Jun 2017 15:08:13 -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; Mon, 19 Jun 2017 15:08:09 -0700 X-AuditID: 0ac94369-9c18398000000af5-2f-59484b4d0837 Received: from exp-402881.sandisk.com.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 07.4D.11415.94B48495; Mon, 19 Jun 2017 15:08:09 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Bart Van Assche Subject: [PATCH v4 05/12] block: Change argument type of scsi_req_init() Date: Mon, 19 Jun 2017 15:07:54 -0700 Message-ID: <20170619220801.12557-6-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170619220801.12557-1-bart.vanassche@wdc.com> References: <20170619220801.12557-1-bart.vanassche@wdc.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFLMWRmVeSWpSXmKPExsXCddJ5ka6vt0ekwb3T/Bar7/azWaxcfZTJ Yu8tbQdmj8tnSz1232xg8/i8SS6AOYrLJiU1J7MstUjfLoEr4/ucVawFLbIVG7+9ZG9g3CjR xcjJISFgIrF1WQ9bFyMXh5DAUiaJvfsWsUA4Oxgl2g8sZYWpevh/J1TVSkaJp83tjCAJNgE9 iVPz9jGB2CICChI9v1eCFTELzGeUWH3uOBtIQljAQ6Jheit7FyMHB4uAqsS3OXwgJq+AtcSm tYkQ8+Ulpr3rBdvFKWAj8X3yTrDxQkAln99PYAQZKSHQxirR8v4AM0iCV0BQ4uTMJywgNrOA hMTBFy+YIRqUJc6vfcI2gVFoFpKyWUjKFjAyrWIUy83MKc5NTy0wNNUrTsxLySzO1kvOz93E CAnhzB2Md594H2IU4GBU4uH98dY9Uog1say4MvcQowQHs5II7xcpj0gh3pTEyqrUovz4otKc 1OJDjNIcLErivOdkpkYICaQnlqRmp6YWpBbBZJk4OKUaGKe8F9VZ2Vbi/+SmbfG5RRM3t1rd Ut177nHE2mAJzbqNV8Q1JiU+erCi+OvUGTdvN3pwTNPeXC8R/SFXUsdNadOxiI0KDUL9t2MC /BYklit+Uz20QpIz7wDP/zbb+wkzmSISKhebXFNiEZM8NGWx266oEs5lU3d+6NI8NuGs2L29 d4MS/15n7FViKc5INNRiLipOBACm/sBNXQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJMWRmVeSWpSXmKPExsXCtZEjRdfT2yPSYEkDk8Xqu/1sFgd/tjFa XPrzhdFi5eqjTBZ7b2k7sHpcPlvqsftmA5vHtDXnmTw+b5LzaD/QzRTAGsVlk5Kak1mWWqRv l8CV8X3OKtaCFtmKjd9esjcwbpToYuTkkBAwkXj4fydbFyMXh5DAckaJhiuvWUASbAJ6Eqfm 7WMCsUUEFCR6fq8EK2IWmMso8eX+LLAiYQEPiYbprexdjBwcLAKqEt/m8IGEeQWsJV5ee88E sUBeYtq7XlYQm1PARuL75J2MILYQUM3n9xMYJzByL2BkWMUolpuZU5ybnllgaKhXnJiXklmc rZecn7uJERwOnJE7GJ9OND/EyMTBKdXAGH6C/4x0tWz4tIzq4NshyxMCXr28s0bjRf9MqfxI STvzRS/K7WT/3uJ7cPBXY23qyUWpnv1pFqeSHJ6wnf/qZfvsEZOl3jYZgd9e+iq3Q9KYOD8f YpusvjHgccf3a8smuWxwdr774J3doQ0v2MyTD2hrLX11U3/a9+W+Iovv7tFcvuyEZPS/DUos xRmJhlrMRcWJAGuXqJq3AQAA 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)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(86362001)(77096006)(38730400002)(33646002)(8936002)(50226002)(107886003)(305945005)(189998001)(575784001)(50466002)(110136004)(72206003)(478600001)(85426001)(8676002)(2906002)(50986999)(53936002)(4326008)(81166006)(2950100002)(105606002)(47776003)(6666003)(1076002)(356003)(5003940100001)(5660300001)(76176999)(106466001)(36756003)(6916009)(54906002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR04MB545; H:milsmgep15.sandisk.com; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT055; 1:4N8X/RqnagK1E/TiehIjP4sPBd61wemNEHYRPnAUgH0Y4YYsox7fmRxEK4X9C2PZ0Q99l1H1SlUyEhqKRqyq3INYl4Rs76tReWwMwLHcRTtgEzaXM3uQGjW9q81PljbNicmq0RqjFqLXfKnT8vBwmhbiPzV+eyRscL7A6FH3xLy/hQSLw8zeAYS9Mdkh44OW/WVqBfLOoAGEoeMRjJeyKSDq9dBwt+5byyWwmg9agKYfO5gjQ0Ft1ronb4glRE8wlL4LOu8pXXYry4RJsJ0gvZaobXTLe6gsaKuEFsSn7TFXyZ7q7cCy3jI6ld83cV0hXDGjRHCz9shAWQ6OfnMqnVOpadySaviKON5KANHxzB1Qt355++uTK2eHwPWdo43CnRFGBrjSplmSoMhw55h9IiiRpfgVvhtQGxIwUZsF4lly3ZrSNUQg7aAb0+8GB99w7IpKttiCdj6Bcapn4EFtlltLo0PxoqE0Vf9UDi285NW0pXgpWlIEZxrrDM9lw+0HYTEv/NKudE6/R3oOhiHGzAetz51iMdPehzIj7w916yWduoPNiXb0twwDoY2PKPhMMkMLJKlyGsoPSe1QwhXMa28HcdyMLHmW2JtksT1QM72ogpa5WFTU29tr5LxRLCQ7a7e+OW2DP96qBtmVLXeLDE1a5D62W/k/q7QFavmuvP10tClL80MQbu3BMbFlFWjIz0PKv2r1Jj6eAIu18I0vqnveRZ1Q64OfBVNRDIXZCQOlLs6uugENH3rKlWUFkS3LkpOB2FDfcDOQSOEnhA3EXK5ga4LLTXUEQeiUB5xkCnFL0JuntQdbKytCL6VM6bABRwX85i1I5fKBhmzaDxBds1RPyJG5aerVr/LhkHjnx2+kai05HDR6x9JbAoz3KSEneYAmn79qvwdQ8gsm/Tbm8+BVtRzKgJR0sfWVM39QXl A= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ed49e80-d751-4406-d592-08d4b75faebf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:BLUPR04MB545; X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB545; 3:M1FLY/MCjv3Yx8L0m6XSuyWhV0MhBEYU2OUMJb/Mbd7eagrwa1+txw1NaQg2Z47bYQk53cFjN9CzlxesL6FMhRdpyGZ56UK2cfiNutmL3Nq3O/twEs6lDJ97AOAw0v5LO4zpwyvsR/qNcrktaE2Kje8iyBzPkquSsur4zozGv45UkzxPAGGqnx8ozJdR5It2dNpeeuSBllmJ6IGqLImtqAz8cuZT8GwjGfIfJZPG+5QP29qNADU+McZLmEBB2zJknZhDCTTQnemhTq5s5qoJmsTp9nYbZ0qCO1IEqwbHYHvxrx38NtBKC3ijl5fLLgyzazQy/ndcdj3pLEXE6RlkCfFTIlet5PI9Uw9FO26/GQTQWR4lq2pN5Dqs9z6yMK3d+1nI45sjDHJx7QiqaAaLfJNUmn1MHM1uxUWbLIe0lDTbWVeN6GLF5RGppvp798HSI6byBA/AXjMVeCA9MECtiA== X-MS-TrafficTypeDiagnostic: BLUPR04MB545: X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB545; 25:zpuRRp+ECMcRK7K7476EoCfGXWdPvt2e7nCZ/pIiuOD70MDfZinQ9F2L4LOonPywVYYlJkCHanHIdVXeo+on54hjzwzbg0ApKMaI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/EVu+U3/4Ch75yN7PyTPbPfK4M6Y2DfPVoaC+//FzkPEM6DDSKuiUgrkePVc8yTLSzzNS9ek6+6GKd2pM4THooJtFzFwmgCWe3p1mucLh40aB4WIg1/UWQLv4Aw1EoMeaxuHHG6nQzvaQtdnVOrC74mIuaF6LM2dFcbdJdz 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)(5005006)(13016025)(8121501046)(13018025)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93003095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR04MB545; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR04MB545; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR04MB545; 4:bJ6r4d7HuZug1+U0oYy/Fx1QXk/8xhOLai3fHcBWBwy?= =?us-ascii?Q?o+A0DojrBvZCKfCLbeWza79FNcKPzl/g1l/9GIcKJj2CGuY8tj80J/6+NZFX?= =?us-ascii?Q?cYH7nIaKDBT3cty1thlEPPGPvFoulMqxYl7WwW80vMTiKPMuhhGN2wsfQw+i?= =?us-ascii?Q?2+cgi7X+eI05dMdXO3ZBLnX96/pVklLgajW/e4oDQwlABCzPgsdlP+uX80oX?= =?us-ascii?Q?e3xGZs2Bl/fWx2nubzzxxzmlD9CWzAye9Igj0UebEMo0ilxALo+or0lrywfc?= =?us-ascii?Q?kuM3PCv79Xoa495EnJkO5PR4HPg1b8QI3uphQMckFjlu2WpmMUQfNCe5y8Xe?= =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BQVxomUgAU?= =?us-ascii?Q?dQpNwauiOniH2fV6BWW7S8pj8AhvyoM7x6FY9f/YEviU1lbR7WjxfQmIJ2PM?= =?us-ascii?Q?Mo3rN5hO/1NHm7sEKntY=3D?= X-Forefront-PRVS: 0343AC1D30 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR04MB545; 23:idVGZlb4huzmf2dgWz2On30mvj6l+ARB/9UXnU/0Z2?= =?us-ascii?Q?wln/kvSNgzuHgBaoSMU3Gr095uQnad9auMWC3+yNDpR/2ata+RwEUFxwVxMF?= =?us-ascii?Q?osfhku705Jx8IWDwxrfqKp9zLhTzOkqF/AqWQ4aUVzVPzrPw7KowKf37kLji?= =?us-ascii?Q?OZCZghMSmASX5VAwHGyrIAaWbT5rmKsS9js6aj4Hj0ewkCW8u4e494F11bL7?= =?us-ascii?Q?OsmMnx2tVnZ9AzyWO97fIi1oBA3Mj9KUF0wcXiapOHQpxybhH4PGSyDrExDO?= =?us-ascii?Q?S+jLLu8VkvD6+zVtsQ+Zv2s1EYsWcJknQu7oHQFwbynJFziBvnkKA+pxwVR9?= =?us-ascii?Q?UJSoL2tbi2IgxtfZLFzGXEy60qsnP7l4lU6H2QxAaDZ0mskYr0VAOWuXYn7K?= =?us-ascii?Q?5E1lc+g4RwBYOL+zL5hUmpezRyMfnNMFxOTnzQF9oIaa/BisPos2xQ36lcDD?= =?us-ascii?Q?9qkIUMWAZptxcBn6aeHtDLmnOBXXqFTrs7fjdt6b1yWCfBTrACcd+HO4Sl2o?= =?us-ascii?Q?TNuoxGwCGkuOmUaPLoMCoJafqgOyqYBFUSFwss2O+Ryyt0DuCTnxoRP609fz?= =?us-ascii?Q?sfXDr5s/+n+MdyaTiMloE8yLAJPbb6iB4P+ZzNSYjYjPYtOyqTTX9JP13pt3?= =?us-ascii?Q?GVoL6n3ECx5+yslNyUgpfO+b+JyyICknhh18RoWEjfn1gaaloNDr2pbAMDQS?= =?us-ascii?Q?VCloITKZkc20f/Xy1KeKBaOHQZR06uiUCnW/w/+l7E9moAaqEAV9gFFbExer?= =?us-ascii?Q?PVBbTILaDX03eR1OGdvJRtaiLzq+A9B2wi3gFHNdHbHY8WWPuaMe7utfo/Q0?= =?us-ascii?Q?HL1rDPKeNeAsZW5DN1BDeHy4IDZXUC0n5pWAkM7RX1WtY2XfzdWjlLpwG4MM?= =?us-ascii?Q?su86k5w5pLelepPdeL4i3QMBoX7JNbUg0X+0q11XLMGltgmeq4Y/UTBwGKit?= =?us-ascii?Q?jN6MzqPv1Y2x326SGVP5ndlYEtoW/zdLtsNH68wpfmhFx8c0tYJ7i3G3PG4M?= =?us-ascii?Q?n9HiAweQGHgtctEiN91aw0oSc+kOi9iMHzj9sLquBegg3uwqYt3bwdwmv9Rj?= =?us-ascii?Q?Hz+CJLyZDIu7XOyJTS1OWrbsTH9zXzYmf6LWpDSltPKExKoSbXpcaibbB59q?= =?us-ascii?Q?0MVYpGDdKqxLAi5ixTbDUZ317dYZOol/cXcwSfhSwRS/sHXvcOeGW2QEfOsY?= =?us-ascii?Q?LvC22sEP1UHzgoS93AA3HgTmnm06LgIaZG?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR04MB545; 6:nRDvzCGoEyrAEe+CKcJGsw1PbJ3dTj0k+a6jcbK91He?= =?us-ascii?Q?OPBkESj+BciW+8R9cvdKMleIGplkyWdHUATpaxeWpWb8fw/DIkUy0LOrjGkP?= =?us-ascii?Q?mqywAfpKS0z1o5QuJgcyTzagC/5Qs9ZNLf5LxTBmoQmefHbKfhky5X3ZU2kS?= =?us-ascii?Q?n/shN38nOMZ+K95779M/QSxktpR0acDvFxyatTO2KHyfOEybbEZMu+OdT0Pj?= =?us-ascii?Q?/qKubqUlXq475l45+Xa4xIcMzJJOJnvarotCl01SJeKYYpT/OejYl5c+Kwgp?= =?us-ascii?Q?OGO14x9Exx33MSmeqLRiYO7FUHdL2zbmKdjK3L28fAX5KNbvum5ABfvAg0c/?= =?us-ascii?Q?WgF6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uRTMqW6pLzdyTf/GDG9/bTlY0OxAB5bSqiUghoaLVSd1HwgmCWabOxbtsxnhfdLcjQBtT/WY5XX/gPfR5kRpfxe29Cl70auzTTv16sR/WSq3vcd/MrbO7Qk79OS6KXqNKMO4xpnE24eFMbafTPSGDSFeGi6VgckBrDSQAjddRID+WHcFDCqhZ7nZ7+g3zbL1+h396Ufn5NIxZ8Y7JwtCAc68Cchu4+FSXCLxg1PvH0e5W6FTbE= X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB545; 20:/N2zD5QJC7jgbr9p4cOduSq14iUd95/RaikqPmYmKe4E5sODdRm6IJiiaAXjCdmlacQDQMlhm79Qm9HTcicX9wjwEoHtcy7he7hjj4PSXKQQu8GnqSc83n/YDwntKzJbE9uaITQNftxeeTUJyRnefK8c3faynM5qoVXoJOWmbl0= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2017 22:08:14.5478 (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: BLUPR04MB545 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 From: Bart Van Assche 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 Reviewed-by: Hannes Reinecke --- 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 37f61acf5a35..14d1e7d9a1d6 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 5e7895d76998..5323505e4770 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1119,7 +1119,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 ae55be2b2385..d5bc7dc39be3 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 */