From patchwork Fri May 19 18:30:16 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: 9737923 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 096F46041F for ; Fri, 19 May 2017 18:32:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 013EF28574 for ; Fri, 19 May 2017 18:32:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA31C2857F; Fri, 19 May 2017 18:32:21 +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 843CE28574 for ; Fri, 19 May 2017 18:32:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756504AbdESScM (ORCPT ); Fri, 19 May 2017 14:32:12 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:43736 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756068AbdESSab (ORCPT ); Fri, 19 May 2017 14:30:31 -0400 X-IronPort-AV: E=Sophos;i="5.38,365,1491235200"; d="scan'208";a="20047670" Received: from mail-sn1nam02lp0019.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([216.32.180.19]) by ob1.hgst.iphmx.com with ESMTP; 20 May 2017 02:30:27 +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=atx4BRLTEiiEBNRIKKYeezlU2djoB+c2lwi3s8yW+Ok=; b=cz9F/eUPnfw5pOWmWfhxprA7BFoUV5Jb8jrG3ptmp3izD74/PGhASTrnIoaN2oR1Ml3Jf1g3OO4gJ5Lk5HQoLxFj6D+OKf0B/fyEF/8TPXY/4pk1xZ7KixuMNYwpBm+n8m4Yarpcxe+ScWbxZTTrNbvuinDYJehi+FNGTiu38W4= Received: from MWHPR04CA0078.namprd04.prod.outlook.com (10.174.173.19) 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; Fri, 19 May 2017 18:30:23 +0000 Received: from BN3NAM04FT011.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::208) by MWHPR04CA0078.outlook.office365.com (2603:10b6:301:3a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14 via Frontend Transport; Fri, 19 May 2017 18:30:22 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; HansenPartnership.com; dkim=none (message not signed) header.d=none; HansenPartnership.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 BN3NAM04FT011.mail.protection.outlook.com (10.152.92.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1075.5 via Frontend Transport; Fri, 19 May 2017 18:30:22 +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 55.5A.29323.CB93F195; Fri, 19 May 2017 11:30:20 -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, 19 May 2017 11:30:18 -0700 X-AuditID: 0ac94369-548749800000728b-99-591f39bcbb8f Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 71.47.18148.AB93F195; Fri, 19 May 2017 11:30:18 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , James Bottomley CC: , Bart Van Assche , Christoph Hellwig , Hannes Reinecke Subject: [PATCH 18/18] scsi_setup_fs_cmnd(): Call scsi_req_init() instead of open-coding it Date: Fri, 19 May 2017 11:30:16 -0700 Message-ID: <20170519183016.12646-19-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170519183016.12646-1-bart.vanassche@sandisk.com> References: <20170519183016.12646-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHLMWRmVeSWpSXmKPExsXCddJ5ke4eS/lIg+cPbCwWvNnLZrFy9VEm i439HBbd13ewWSw//o/JgdVj2qRTbB67bzaweXx8eovFY/2WqywenzfJBbBGcdmkpOZklqUW 6dslcGU0HfcteMhWsfvLKdYGxrusXYwcHBICJhLHJ9d2MXJxCAksZZI4vqSbEcLZxiixa20X UxcjJ1hR5+stUInNjBLHTyxiB0mwCRhJfHs/kwXEFhEolLi0rQOsiFlgMqPEzOYNjCAJYYFo ied/D4IVsQioSrRtfA1m8wo4SOw/2AC1QV7i7JadzCA2J1D85fGF7CDnCQnYS9zvqweZKSEw iVXix+uprBC9ghInZz4Bm8MsICFx8MULsF4hAXWJk0vmM01gFJqFpGwWkrIFjEyrGMVyM3OK c9NTCwxN9YoT81Iyi7P1kvNzNzFCQj1zB+PdJ96HGAU4GJV4eBN+yUUKsSaWFVfmHmKU4GBW EuGNNpGPFOJNSaysSi3Kjy8qzUktPsQozcGiJM57TmZqhJBAemJJanZqakFqEUyWiYNTqoGR hSH40ZutO/3OrfMVUNmU63deUH6CCPsfmfYHlytcXtU/b4toZbohxiCQOZ+n+klJ1RamYsPp V49JbvfY+Tjn+5zpnQ4/q15t+bym3yn9j+PuXo2OQxPMPM4lXT5t8adVVf3KzZ8fJHsyAzxP s9sW339Q/FqgwnvLlBivbultUy37a09s/HJSiaU4I9FQi7moOBEAoPATVXECAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHJMWRmVeSWpSXmKPExsXCtZEjRXeXpXykwZdjlhYHf7YxWix4s5fN YuXqo0wWG/s5LLqv72CzWH78H5MDm8e0SafYPHbfbGDz+Pj0FovHtDXnmTzWb7nK4vF5k1wA WxSXTUpqTmZZapG+XQJXRtNx34KHbBW7v5xibWC8y9rFyMkhIWAi0fl6C2MXIxeHkMBGRom+ B9fAEmwCRhLf3s9kAbFFBAol7p8+zQZSxCwwmVHi47rdYAlhgWiJ538PgtksAqoSbRtfg9m8 Ag4SLfM7GSE2yEuc3bKTGcTmBIq/PL6QvYuRA2ibvcT9vvoJjNwLGBlWMYrlZuYU56ZnFhga 6RUn5qVkFmfrJefnbmIEhwhn1A7G6xPNDzEycXBKNTDO9ghIfbfkw7nyWWGCC6ae/C+ftFC0 c/skl3PR+beFdc4Vmk75znqn/fTpw57XVc7772Terjyt7M31j7sez3RtmNA199KL3bdX9Gjn dd2Kn7/a3TzvtMGX/u6lOh5Ppz0+9GFW+qnzCiHei2pztrzRFzD6rbfCUX3/2v1pCaqBp58X hBofZ5XVVGIpzkg01GIuKk4EAAlKjuXBAQAA 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)(39850400002)(39400400002)(39410400002)(39450400003)(39860400002)(39840400002)(2980300002)(438002)(199003)(189002)(9170700003)(5660300001)(189998001)(48376002)(50466002)(38730400002)(47776003)(305945005)(2906002)(86362001)(72206003)(1076002)(77096006)(50986999)(53936002)(33646002)(4326008)(2950100002)(76176999)(356003)(5003940100001)(478600001)(106466001)(81166006)(36756003)(8676002)(8936002)(50226002)(54906002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR04MB0356; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT011; 1:vFTXNX3klWCQCALmaXQHstufWCl/mrmUbuVq+BwvgX1TYX4jZ6uwGAETPkv7N+OEz19oQDoB77lj5ZWhWgFIz/0r5Wb7o18a8/OALfpfNnvdID+V0RmAKv58BFXYLLvM47D/vWeWtV3VUa29GuB/mCBl3NMm9dMyWfWuVK0MxqgdwBW9PJ48MqYb58rQ4QoV8pahiJdeqZc4J4BQf84eMHICMt71SfHON+BneLIZyYQz2f0js9x6+N0kt/PKWluHanHod+mzpCXumJBD/sMFfT8bvXFB5QVpOsa57zZFNrzZffUpU06kWLOpL9Pfe1H/lP9kHbsokd19CkMgpYM3cfMndkIaHhhxI0ubJiurE0OAwTuJzcIdsr4AI965Hq15s3b2Zj1j3kzI/zWToM79MjJuWcroaN46OHsQBCJbo5EBvy/7zFvXCyC0WD3TkL9lzAU/qxGcV/GCqoZurqgcR8lZG4eGq1PpjaseERw3cH9PwUq5TWjXQXMYnAQnWt4zvLsFKwz1eEMxmbfo1cO1pzFwlAHIBEB4wnR24lbPxEo= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN6PR04MB0356: X-MS-Office365-Filtering-Correlation-Id: 7c3d65d5-0bcd-4261-b2eb-08d49ee51c4d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN6PR04MB0356; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0356; 3:WsqWov2CNrr0ZocnsRmX3Z/3JDn56sTtZPobVNezAX3LW6oDg9qVGGPlInLG1FaOCTD8JGsURnO1uchF41lxc/SpeAU0YbMHlFfCm4AYRgokLXmsXKTNk6lrc2hM79tm1rwGapjAA12Zvr2qwi1lrbCYTBymts3abOcA51xVuIcbUKGWqhSL/Yt778zJBwbTJ+h8dKwLIqrV/g85PGUojorD/m+ztPgVNHd1D+M0tfoT8+JhmolIQmjp6pVJRYf8kOnPk6CpFZaUXmb5SpKBmcz8a5xFlcLdeHVNL8WTg31NTdnAtbp/t/VSUnB86+nHAOLV+FqIrrq9SWOAcHwJR+rzfVt1Lk7O90KO2biv7F8dxjrngIr5JAa+Gt19qmMmuFqyuWx6s+nw2Ff+yWoMhpWltoZWgdiF8s+vSFJgIKYWgHmVl/2/jN4YCgG22h6efZkDwqp1cKw3Yq3dQbsvbe8AfxIOT8/A2mjHRPrJlo/Q0jxXphYrk0MCQ6HHhp/8Av5a0KF8mAWKKAWeOdGEyA== X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0356; 25:Nu7ZDxOOegRnN2/I0wkQuBtlEcmKaGZAQsDyCP6kBpmGs8ehIgk41mFdCEXdavZz7MRyYy7MzatSsIyZQ566hje1OLtbDmCgXMtP+gsIJG6ovLPkz48zvyY6vbDA8QrvUaJoOOBGtvUkiw0+nRbsCzofLe19kByMqWBhdNfgjhdiQQ2r8uXDQD9DY/aKaXYD3mchEJIpBtvFLRwBfX/S/HrkL3I8FBtAVBRIPZ7gwcMFput5Vwjorzi8FDpMLmEgJvher7xd+/+2qYvWYf198mxexBFEO26sYGAATRZHKpeiPQx7DBKvfZlW8IPDuSdTJuHiU0duEXHkMTolW/3j2R/g1S2cWsFJ7wqp7Hez33CQCgBqktirXiOywrnsWso/SXSF4j7EeXj3d3lOrnDj8tktxxmVMH6GdFIMbakMbTljKPU2x1vbv11KLPzmE3Hh93CHmiLMtaGcskifAlMhx4COXaz5F6l7g7oiVDFQ1UI=; 31:DGLY5vVxW+beLMy835Wyuy0fEytkj7tJGU2ZSLuIBlyuHInXoJ99MOgiLDANexVTjppzdo07VgNTkPu+d5SD8H0fEtOskeg7DQX2qNl6IWLpxSDx96gYDgiuEmPRIHj0Ssr0vbNEQajd5mNAUgwiydrnggM7AWON8j2gSwfu1IVl5G+0mkicEZTxiu+8UAWEE8rlhQ5QBYemSM3Fi7usuQV9eHaNar8hjtsLyBqSRjTCB30oIOsT6SPYTXYUZUZwogpP5nQ8koZW439PktKpkw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0356; 20:2AFQIMibX4O7catHVbBuNdWB0Zvu8LFbovj+zn7rx5XEVV9G0HW21Dz0LCozhPjZVpT1j7nhgMZoINW2QeRnQ/+ByBhFIJG7nrYj9xrqgfwAYUyZN3lUGvIwnN+WtUAgkdTC0fBZ87AFz8k6iLfjFGK3osKikYA2UBK3DqsObT71a2uXQ+BjJf6g2vSPa+9z7ZqpnAK+5F71Iibf7SjUsdaAN7dHC2mPSDwrbUsj7eKqjXajz8/m/kEDQv+e5Dy+5Nmr/Aa5c9AKSPweM45wJp983DwGYvzA5q2zhoCaupsL5wcSh83tMmDY/TuVNIs7Sot/pcqu7xk6h0yKBYKmfu1gNAOMd8yo7pu+7GX1cOeYturE3ta745jKOMnfGeYg3StIscXLIXSF4uIfpzUBQSZIOI+G/3dj3VQiqIrMygEOqHFQdnhrfosp7bDHc6gnVSenXhs+EtpNjunbfiXKX5zdQ0VDatkZaFoQzjg2wnT4G0GMRJU5NhDqjyDbArYW X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123560025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148); SRVR:BN6PR04MB0356; BCL:0; PCL:0; RULEID:; SRVR:BN6PR04MB0356; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0356; 4:ZdgbnjegO92dWT2dnVqveQ5BuN3AC1P9kSx4muWoLcZLx8n356UO/lIsKyrtRmPDkW79m+Ru4hFXQIbwUvasLhA7sK/56Bgrla7P1JjUGRbJ8GFz8Q4sUAQUbkh0DhrJkqTFD3bL353PRcw8H563c8agLC8EBdM70w5v247AWJALI/CoA/xwVN6twxsD681qz39/fNRiz4YMocx+IJESrn1Wi9/ophiOMN8k4u3F6GVmQOPWXjW7gUMtUC1j6z4tQnC0ZEqrrR5H8jQZ+2T9Dnf2yxG8zitNJMZVNNe/GCbV3kbBejdyvIRfbrrsFpkpRqhwsHxXuWyE6FXg/FngEuNet1ULSDw74z0HE1Ql/g2maPiVUpxJdgT2PwuPZIFN80NMpB3g35/fGhOTr8y4ijxrm6eMRi8prP5Hsqzt6lxLw8OziMgDenBuBuJrWAwavpysKNUYBnjebe2iGAhftqOYXMT88vxkeDSQ7/hXZn5oXWWzxVzP0zT672/pSlXD+qjQhV9cRoX4+afyp1BANvigSQHI03sS7UANmDqdr/k85me9QGhRL3dSqBTKcdY1Zs1N4Yxn+qLPeFG7SDHTjVDHj95osUoy2PRlgDzQfFMvf++HOlvFu+EgHoznKlQm/dzQmk2ZcJ84m2wN870zN/Q+gtkhAl8o0T6+1vMggR0YybElTo/TRGE6wSarcmR5SO66gh7qFd3vv5wmhWa6cpn3Wgbfs5qHuynidNdAvCZ9Gh183+fH3cw9QVMefvXGfw5avGPGxuS+PFtaOEUNTJB0RYKOBaQutTmNsv6IU064EbWsHfYbe5Sz1J4n5IKFl8gCtA8lEiwI+EozQS5YYJCMMfluNzhtQaC1FB+ARPNRLcp+7uPpPqCv/omiGkSU X-Forefront-PRVS: 031257FE13 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR04MB0356; 23:GGwOmgz3E9JYPfclbNAU7iscaEAugBYXrrOxugYBS?= =?us-ascii?Q?iM0yOCVCJ6jRn/hAYfgN3C02vjL+Szqy6eiPt3U7gW08lVVvJMVHv4yP1SpB?= =?us-ascii?Q?WwT1pE2nW7iZhBD/8P8DkTTGV+BSmLrG5xfwNRMt10awF5AK8mffDsawZv5q?= =?us-ascii?Q?b8nxv9d7/Rustf7nv121dFLhNlCtU/E9a1sDP6kpwIwtl3mpsiZqU30OlJrY?= =?us-ascii?Q?Ru1QrOJshHMwuKNV7ir8//Ux49KqLqV7709ITC2Hm2/C7dkZo9CU+DQQ2sfg?= =?us-ascii?Q?MZISMOA10WfsTTRiDjL3VL/KUXAmXIZhKQ5DH7pZxnCxXuGGnn/7FjVn9wJX?= =?us-ascii?Q?MjKg+7WfVXxmBZFxaHFatF993lNTrknulNO+tykcAyC4JtZHeKgA5fsH1SFH?= =?us-ascii?Q?zTG9le21o/l+/R1EgAKkR5HjCJzEIJ7fu2hujmDAce8xIGuNHL9IKeCK6dul?= =?us-ascii?Q?Qnm/hHYGIKNHgoGXgx+EJ27C2dK7YBpchvVbg0BBpXQsmTuW58iT912eD9Ug?= =?us-ascii?Q?gVtXEDGVyT2qp8YyzQd4vGN/uCsVs6HgKPZam0xdVGZCnMCh0FL7+UpmQJ+U?= =?us-ascii?Q?U3TYIX05heC++gfJ/Dbt/2gkM47pGTNPVZmIZElZ4GHmEBRNpnMP1t1PsW4b?= =?us-ascii?Q?tPvAmoHX39ZQ6ktXfIE6oHJ0krfBc9EAXrGKs/Ztbr2owx0uKrkEqMmC13rF?= =?us-ascii?Q?TFlfUCJLmceHVdhKgoVk7PUfbVCXGWF68OCw/zvnfmO66WogdpMpLhHH2YNF?= =?us-ascii?Q?/D6z0pDGjjgr142BOU7p8Pa59JM3Y+a3SRt9Cm7epgGq/aTdugrZnqeIusm7?= =?us-ascii?Q?DY+GgZZn0DKQFIDL84mny6awYHR4oXgig56y/ZxOJHMsYz5S+iDLgiGYHO1y?= =?us-ascii?Q?EK8sIOdRnU+xON3AVMRqaKS4baC6DgY60PpWpGQVoIGLUezKWcybKbVhoAbq?= =?us-ascii?Q?gutuIybhtKiR0JcJOE+m1VI4MWCdMb3DyaCHvxOCKabzX1fAlTYwuZUAuSw1?= =?us-ascii?Q?LJTAfj31bW7tXwXVnVu/u1olVlrTJAp7RPDqysUiPSg8A=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0356; 6:GeV8Kvu45pAR0bDoJeYSYbLYM24dYC2e5/hs523X9+0zRpcbXdItNy9kujI7m4CvQv3X1RHAo4E7jZIvGsU+bCCM3uENZHGh2E5aWn1hF2bSLTFu8jTaq7bHSewlYo41QfCFa9X++nCZZjz5inYU08wXjK6xCbFpT4eJu9FQRcDjVITJZAWokrysjWHNORJ40jIoLd1a+TN5opCjKc40/MlNIvwPBbIYwAdraehDJEOEaJ1JUVsOptLuCrgG6SkOycb+rHWBbVnC++C83XYb+VuaIB2kXxO7mY3QiQ7nJ//uHwGwh3WIT9UyUFKyvJ2ES6r/Gtav4WN6oMndD8zft6tBNTwAQU+HZgMEP/bcuIB3ve1rC3EpZjMthaIpHmwQtHSTTfhWpTrDe2uJjrXeWemtk6ivKeFfLLnmcTdyE5o7L7nJZaqgZt8YQiYBMh5Ay/INQdsfCCvQDSlPgLop1Jo+tTwd9aGho2Qm8LYK8R4bnvoE+VboydjDuvXfk7dh51zzE+O/DLd8QnmWTtABizvzLxCVCnM9v76GD1MNfRY=; 5:lm/UQEkRjC7HoYM7iWYmJm/v7+Ihzi4FNzkqCvhCAICUldXqLLZ0bPyfqfXMTV3a8mnHePZOYs9DpBZZX8ZMfg0k9dkiIRy+aYVO3jF1CsykhlTvuYEOrwdNIQP+Gt9HhbgR8Z5UQ/vvPR0TlK6NPw==; 24:umtQ4bwFs7buR15/NtpLMBuwVzSu8NDHAMAouswB9Y9uNUtIJVii/DUKYNzYbS8hknXapB+2lRDAe1fSrGC3dD1HB/ggEZpi2yB1drLbsQI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0356; 7:EzBgvu6bL2aQuk+8kea/VCSD5VefrfZl0otkKjcm/JIanmtlebbOMmDUl14erg7F2gbfoqM/31FKVyeUSwV+vnilpjP/668GESTJso2T4PQg2djmfi69KSndVZMVuYhMH0ATn0IcGqdChecclUA9rFw2MnZpPM+Q+I38sGoGZQ3Nf+DBWpS1X4efwnL93E4dc1FzkOosocqLAvILmSWNFVoMnQkgnMJDUwE6t15BUyxHj76TUkIPesil57W0nShJ50HMYlBkxOYcGzirPYp/fagwJS/WT8j0JBDvzdWUimWnsg50satJRjXXSUK7rUKMyO726Wg6i9w5ptJa614TMQ==; 20:mIRuhmSCLYJooK24X2wmjQz8sMtJNBV1SWn7ASMOJgdVOqJJ5Bzves79xjl41y8PTsXusJn7mq2ONB+NOztz00PE21CtiEX0tXczMw+OAiGZnsuXPSSB10RySoqbnkEjZH3uehT6IGP4PX2bW+rXuvujN/HLvmacEEiQ0OJiqKA= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2017 18:30:22.0010 (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-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The only functional change is that this patch causes scsi_setup_fs_cmnd() to clear scsi_request.sense_len. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Reviewed-by: Christoph Hellwig --- drivers/scsi/scsi_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 5431d114c897..a93c7d5a9322 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1212,8 +1212,8 @@ static int scsi_setup_fs_cmnd(struct scsi_device *sdev, struct request *req) return ret; } - cmd->cmnd = scsi_req(req)->cmd = scsi_req(req)->__cmd; - memset(cmd->cmnd, 0, BLK_MAX_CDB); + scsi_req_init(&cmd->req); + cmd->cmnd = scsi_req(req)->cmd; return scsi_cmd_to_driver(cmd)->init_command(cmd); }