From patchwork Wed May 24 00:34:17 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: 9744785 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 394D3602A7 for ; Wed, 24 May 2017 00:36:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AA8028865 for ; Wed, 24 May 2017 00:36:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CA1C28867; Wed, 24 May 2017 00:36:19 +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 A47BC2885B for ; Wed, 24 May 2017 00:36:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968990AbdEXAgR (ORCPT ); Tue, 23 May 2017 20:36:17 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:7422 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763368AbdEXAf0 (ORCPT ); Tue, 23 May 2017 20:35:26 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="19885599" 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; 24 May 2017 08:34:31 +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=B7OAelBj0ByJzOfc1fnIffN3DSAM0sDU14KLng7xG9o=; b=HP3A19bHapUswW/QyorIl6OzLq9LqOWg7FDkIn9hR912Xwf3Nncu15LB6ICyCobnjtYXObjIZy3CIB2pOTVIYyrOJHySwPZIJWhslamALlrmxsy7eOWWHTGXGRPLDWv8y1+zhlM+/LKW6XFG+N8nXy3hcubC2oZIdr47FCMTja4= Received: from MWHPR04CA0033.namprd04.prod.outlook.com (10.172.163.19) by MWHPR04MB0511.namprd04.prod.outlook.com (10.173.49.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Wed, 24 May 2017 00:34:30 +0000 Received: from CO1NAM04FT032.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::201) by MWHPR04CA0033.outlook.office365.com (2603:10b6:300:ee::19) 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; Wed, 24 May 2017 00:34:30 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by CO1NAM04FT032.mail.protection.outlook.com (10.152.90.130) 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; Wed, 24 May 2017 00:34:29 +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 5A.55.19026.315D4295; Tue, 23 May 2017 17:34:28 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 23 May 2017 17:34:23 -0700 X-AuditID: 0ac94371-41ba798000004a52-39-5924d5138d07 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 8B.A3.18148.F05D4295; Tue, 23 May 2017 17:34:23 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , James Bottomley CC: , , "Bart Van Assche" , Hannes Reinecke Subject: [PATCH 28/31] scsi_setup_fs_cmnd(): Call scsi_req_init() instead of open-coding it Date: Tue, 23 May 2017 17:34:17 -0700 Message-ID: <20170524003420.5381-29-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170524003420.5381-1-bart.vanassche@sandisk.com> References: <20170524003420.5381-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsXCddJ5ka7IVZVIg0eL2S0WvNnLZrGxn8Ni 7y1ti+7rO9gslh//x+TA6jFt0ik2j49Pb7F4rN9ylcXj8ya5AJYoLpuU1JzMstQifbsErozj F24wFrxiq1jXf5atgfEZaxcjJ4eEgInEv+VnGLsYuTiEBJYySey+O4EJwtnGKHHr5ktmmKr7 n49CJTYySvzsWQOWYBMwkvj2fiYLiC0iUChxaVsH2ChmgQmMEvtufWQDSQgLREv0758C1sAi oCqxc80eoDgHB6+AvcS2BnuIBfISZ7fsBCvhBAp3vZrADlIiJGAnsWh7BchICYEuVokrc+eD 1fAKCEqcnPkEbC+zgITEwRcvwOJCAuoSJ5fMZ5rAKDQLSdksJGULGJlWMYrlZuYU56anFhia 6BUn5qVkFmfrJefnbmKEBHjhDsbXt70PMQpwMCrx8CY4qEQKsSaWFVfmHmKU4GBWEuFdvgEo xJuSWFmVWpQfX1Sak1p8iFGag0VJnDdLdmqEkEB6YklqdmpqQWoRTJaJg1OqgdHg2Pqi5t6G Pd0PeGr/3XN0Fs44zDXR+Kn9lX8vt/80f6zz8+x8uTd2bUf3hEqviF8wLd/v/t2NSpHbi8Rz JOrXXF/9UKcspnrP6bOz1e88nTFT0dJwn+eNJ0ZcwdXbWXM/mdeeshHwt1m+IiXv4vbl1xR0 f33zc5gZIaggvvH1oQDH/SwTjpUrsRRnJBpqMRcVJwIAekq5iGwCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJJMWRmVeSWpSXmKPExsXCtZGTTZf/qkqkwcceZYuDP9sYLRa82ctm sbGfw2LvLW2L7us72CyWH//H5MDmMW3SKTaPj09vsXhMW3OeyWP9lqssHp83yQWwRnHZpKTm ZJalFunbJXBlHL9wg7HgFVvFuv6zbA2Mz1i7GDk5JARMJO5/PsrUxcjFISSwnlHizdrX7CAJ NgEjiW/vZ7KA2CIChRL3T59mAyliFpjAKHHs7iewbmGBaIn+/VOYQWwWAVWJnWv2sIHYvAL2 El829LBAbJCXOLtlJ1gNJ1C869UEoAUcQNvsJBZtr5jAyL2AkWEVo1huZk5xbnpmgaGRXnFi XkpmcbZecn7uJkZIYETtYLw+0fwQIxMHp1QDoylfgk7xdyX/yw/Cnx2ImqGbVH9nwRE9V53g j34JGm3potcnMp/osOTbtudz/POv33y1lz+b+eqLl6gzy47oDrWlEXGB/SlTjSudVJX/qH9Y quHxY7rO7wu11aV58xaopQr8FfowwfveSs5iucKbUrUTz10NeP+07oGlM0P8oycN6yefXFJT q8RSnJFoqMVcVJwIAKNlwtm8AQAA MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39840400002)(39410400002)(39850400002)(39450400003)(39860400002)(39400400002)(2980300002)(438002)(189002)(199003)(9170700003)(47776003)(54906002)(50466002)(48376002)(81166006)(8936002)(8676002)(86362001)(2906002)(38730400002)(53936002)(305945005)(77096006)(6666003)(2950100002)(50226002)(5660300001)(72206003)(50986999)(478600001)(189998001)(5003940100001)(1076002)(106466001)(356003)(36756003)(33646002)(4326008)(76176999); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB0511; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT032; 1:GNMheKweKcSt1AHa5pZY5DgfPRfjfUvRX/LH58x20SLPrjNWJA27rrm5r87RCZNbymf/ebtsUzYZfrRg/QwPEup38ndtkRUKYpCahLV1NZPQP2+an/g6rUzdbLMfx4vekW4uE6laUjA1BIPr9gtZLUQGoVqqFCmrJf2fzAxyiCzZCJBC+A8m100OlBsPUVXh/p+b5CpTpthiSpHH/yHqrz7H25y1l9anTTQT0mQcLmoYu02vPoIknbU/Po0ZB7TMbnnUxu5vL1zP9TKF7yxvj+YyOp1DzWY0gr7btNz5gbz6zd0ea60kq5Qdlxmv0nLPya6gs6lP2L9Vq7qDl8UEYiXWHwUz+3q3KjYcN1z0o95Fc3DBTiHkr947/1jTiHwOMposalCCZFx4Io40qK+xIhxTj+Y4djyc9vk8OoO/EK0H5Ta4ehSMtNHjKNqKV+eMSfkghk8Q9sY36ypLEXpp6vCBQGhUWW0GH5prv47nnO/eiQQvtrJP2YL5MAKv0pUD/ypsq72C3svLlRkNVGsro3qd8VHvVBJS97IuTkgww+o= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR04MB0511: X-MS-Office365-Filtering-Correlation-Id: 9ccc7538-d0e8-42bb-f480-08d4a23ca3ee X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:MWHPR04MB0511; X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0511; 3:61aYxXQ10rYsMQWVleRfgYEFwp6HyHYfusEbDluwIUIsPKFqTqEwaoiItlKXkYfajt28eLxXAV1xOW//ic7mRN8CkWj3ZNXkzIjK2pKZD8VOZG+5UKkd4Lg3cwzcmzNYnDZDEflsMiwI8bUTi5QfvqtnG1CwT2VIjllddKx3HRzJlipUaw1AnJnOME7HngwNy0qHeBHhwN4DUklxX5bmHYyuRUizQEPnmmNo5hLOr1LIRlTk43TtBAKRN+mRAKECVTtgtm4QVOHFx7UItgck5UaqQ7k/2GR0wgbBn2MWNIUmDASD4u684TdGCYAKG9ddK+6SghEUfbU0/oqveU9+uI8KuV4HkiNXIacH7TC4Hq6TYMdmZGV3cgFAg3TT5f+ymQWHjcnMRhkxZqy1qcemxjGei4nPYWdAUZE5CjFxSN0LuLKpVGyICixvZm87sqxMPZxZ5mLjaY+M3IU/CYD+ylzSV7DymGYHzI+QHV+VWTWZ6YUWeGx0q6r8vpO0llKw X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0511; 25:0f7V3XfJ2y/glaCdk94ZsI16STEIpAgCeTtRyvldzywmrjLrRjAoGXX+Q3a01VWAffEb6JH3hcndxQ6R30Gkl6KdTadS/qJqc6O5kb0lY/JGAgiiBA4OFRcGPyRqsBrJe1Kl++Gd9J0nBP7j4sPZCF1vq9VLNZAVkZEw0W1D7C9xzWlnzY5LPQJsRj8KPhl6jIe/nNixvdbOo8ZqoP5oGSrn8rWfJIiktl0S2t/untwvcb6sSzumt9QgNkFg93f21ZnEbwaUoE+b9MOtimnNeWrom80hgak+Zd4b/0EpgqbaQoT9rkrHllc1YmwJMT6Y3AQXvAT0T3tjMk/0HEXya+2OkSaKXJXE2MnShURokUR2Jq16oBcPHFLpcjVOnhNqoI3iV+PDYHSuSkRxQGyBdl/1jmFmkwwm7YSgQ34ManL0bg5BjnInAbfXOjTQHukLs+9+JK2g5bVJkAc/VbN/9W0bKJ2o+4eSBLeMeTYDmmU=; 31:1qMePM7TqF3thkeQxwfStHyeN+7LIE+DJh8cG98c3+2LMQoXxI6jxvy1UmE9poe+WICZqB18uEHO5+TmVpUJUHQg5EtOJZ99jFr6HAuXoDJSf6jz+/f9b+8ftLLjw0ulfjPVmDHfx0H/4A8mniBOFv9XOZfUtuaF3YhoHSnJNVFPTPief4WJaJWix8SD+Jtb4yAUdJo5sT/V9e1apFDELsU8xqRjylXxs4joE9G1b8fyDPm67SCx5Y1auuMTTcCKoEYv/0L6lmk7kSMzZo7hGQ== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0511; 20:56Y0zTWzGiQzayOW3WaMhO2E2qZYz2Qio3q02kQLHJbQ1G8cKqmsISWwn4m15E8LlnGGLxjmyE03ELk5Jq1a0EQ1X6L4nh+k/0RKEkWXQ+yfUfUUKmobJsMGY1+YWBN3zZr0e8OG3ngfkZvRLjtthJCWHbRr6o5nVZl0GMI8CKM3U0GhJvhHQK30fs8IhK8THnq58fjANxPOEefDey0eWDlqT3lrCw6NZI53Ad3J9Acr9YjrQ0d6Lgc/JNMPvgUvyGP6Q89pTSfDjRu5oS8x6CW5ia3Pc807GhWMPr/tAPCLy32m9tL3G9A51Yoh75x634qB9YRAP2bLFhq3KOj+4yoh9s2PbDh+43/jKmpifEn0ik9OulaZ+koW7+YKJHhOebXgxCf/BPWw58sVjxzq0fO+oYkO0jEWbOVnCrbmqCbMtmRKHuqSXOVMnTf21tLH7XtIHBNbTiQy0JgTSSsotLNgrimWON5SKliGQk/BOF8BJ1FH4O4W15Sin7/DSHGx 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)(5005006)(8121501046)(13016025)(13018025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:MWHPR04MB0511; BCL:0; PCL:0; RULEID:; SRVR:MWHPR04MB0511; X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0511; 4:bmnZmNuOz8hvhBUe3o73AVnphupRLPYG2SEWrrB1pDIjsVJkhyKvpQIJ0HXZAEdfd4lEcpB3+QpvxGq7AaVc+pmghFjnjmLKfxn1BDUjuc1GwzVkuHCcHqbJ0BBRqoSDUCWjYTMTIIeCXZgbJw7J8PjSICpDwb3Nz/g3c5X1V4MO/QCkUA8+/1ViIO1dz82PWxp6UhQuF0KgS4Kd7yVAb8CXPFrqt0qja85DyUhPOBE+lrg0zF2RXLpIU6fQp73ZYD/GFkWiBER0h8LD0k/Rbo04YNUCtjobRB31W6AZaTwO2zEIOcRLRrKS4tqaz14Kvk19c0ciZtzMdoklrVFgXGb2T8ivwgWhxZz23v/tbC83zyho8fF9AOA2fdQCB9oeqJGz5GNVeVkGZfYPUcLF4mzZKF9wQLaNKQN5DjEl+en3TaYncmyGWryPpowYv4nku3tpl0V75fZpfmeEyh1ppoDEPbZhCpHC2Qt0oGN18GHzKIjoLrLBxf3R/DClBImrUJMLPoVru0yTAITG7ylWb0wt2PW5h/uIGDpZethuDA8kQk4KjgL2OnC7+eejrzFhlYOpY4k9fHaR5xW+FyZtV0pRMnHbMn0xEOdHaja8QKpEtZ3dyR+4i1Mnkr3n+AyzR502B3EOnYeTp6rEqD7bMxZV/onk+inCibkodgfZ8ipIpA2tEjvPmQU30A32+BGj0NzR7HdSqlpkXnFMbu5qZJ1/yO12+om+4avnSgyIl69JGFfZc8scGadB1JZjSwaY2XyaIEHBR2paYiqcMOy8gLamzRvqoGEOv5/xFOL2OHdRHbivtdQaKXeagmQ7dyvH+aoCmk0hvIopuHixuX5rSbDTI472tB21fixUdU4ICfyMaUt2D6htVtwfBJsQ0Z5j X-Forefront-PRVS: 031763BCAF X-Microsoft-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q51BP+N+OTwxFzSZG7ak/QLmkp3HPbXDiDWL1glQfvzRyQIf05n5BuRMYlVlRaBb3HU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0511; 7:EbkdHu22S+SH/KeZVMbJrEty6w5kSYSqcQA6VZ9yaJj+D/hmdcqKTGDp64wOErCcQFmYgWauY9w80ykBAbJzfkfa1PYZqZ4f3I9sEygoDAOHpw31FczDIlQFJzNeFyWssndTX9782UhoYpwI7odol9ogHiW+XsmT4HtnapGeIfhc6DWJ2fmiKaFSDuxfAH6LlxGlRvBsJ2XcP2nVNTMDEhKqZd/K8a0Kr3tKvAAG7ItMT6P0PoTQ/Q/Ll6949dSxzhualVVnAOYj0GxzeefuxaFFFMTsQakdkCEuECny38MO9qtiaX6VTlWODXAc1KfBJhQgo5vpC6r2l45qD639QA==; 20:t3yPbysGubJF+87UE5AfTqC+6xLOUH/GBcfmjhCZgEHBioiC4rPF1RRUHUkmYGNi5CRP/jt+lKH8wfjdr+vQT+1wA/x60bYs/fd1TNURsaIBe4LKTP88Ul6EyZYJ/spVNWqXxuPT6QyKT7SNa2ucPm3W5znwrQoKeZ3Ec0c2t9c= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2017 00:34:29.4877 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB0511 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 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 Reviewed-by: Christoph Hellwig Cc: Hannes Reinecke Reviewed-by: Hannes Reinecke --- 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 612bf6c201dc..2d680d8ea80f 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1211,8 +1211,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); }