Message ID | 20170524003420.5381-24-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Changes Requested, archived |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> 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 16F4B602A7 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 24 May 2017 00:36:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AFB02885B for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 24 May 2017 00:36:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2EBD28867; Wed, 24 May 2017 00:36:01 +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=unavailable 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 9E3102885B for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 24 May 2017 00:36:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968984AbdEXAf7 (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Tue, 23 May 2017 20:35:59 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:31040 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763426AbdEXAer (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Tue, 23 May 2017 20:34:47 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="116871014" Received: from mail-dm3nam03lp0018.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([207.46.163.18]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2017 08:35:38 +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=tBfWY7HU/DokDup2w/U9uXBmtODhCZluHHq6ll3gpuQ=; b=LC+m47IvHBwD49vwvhmgx3elCn7lIe4zJYvo2SGgE5fgGnXLpa8wYVlcLMZRUeMRAVQpPCqcgdIZnlzpjJGKq4hCEJJuWgwgrfY/xp3V/rYrutbFs+9jKpd1L/KvKLcW/0G1Ml3r8tTHAPTTF+jMpPHmeZOtRbLREKE6WECdM0Q= Received: from BN6PR04CA0037.namprd04.prod.outlook.com (10.174.93.154) by DM5PR04MB0508.namprd04.prod.outlook.com (10.173.170.13) 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:29 +0000 Received: from CO1NAM04FT056.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::204) by BN6PR04CA0037.outlook.office365.com (2603:10b6:405:3b::26) 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; Wed, 24 May 2017 00:34:28 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) 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.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 CO1NAM04FT056.mail.protection.outlook.com (10.152.91.198) 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:28 +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 CD.43.45291.315D4295; Tue, 23 May 2017 17:34:27 -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; Tue, 23 May 2017 17:34:23 -0700 X-AuditID: 0ac94369-166ac9800001b0eb-06-5924d513187a Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 39.A3.18148.F05D4295; Tue, 23 May 2017 17:34:23 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: "Martin K . Petersen" <martin.petersen@oracle.com>, James Bottomley <James.Bottomley@HansenPartnership.com> CC: <linux-scsi@vger.kernel.org>, <linux-block@vger.kernel.org>, "Bart Van Assche" <bart.vanassche@sandisk.com>, Hannes Reinecke <hare@suse.com> Subject: [PATCH 23/31] scsi: Move sense buffer pointer initialization into scsi_initialize_rq() Date: Tue, 23 May 2017 17:34:12 -0700 Message-ID: <20170524003420.5381-24-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+NgFrrBLMWRmVeSWpSXmKPExsXCddJ5ka7wVZVIg+1z5CwWvNnLZrGxn8Ni 7y1ti+7rO9gslh//x+TA6jFt0ik2j49Pb7F4rN9ylcXj8ya5AJYoLpuU1JzMstQifbsErowP B7ezFBzkrujs2cXSwHiQs4uRk0NCwETiz8G1LF2MXBxCAkuZJK5Ofg/l7GC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SvZ/W1mSdffhqeXa9+877Li/bapo V8vRQ4sjQld0ypyZcP6pwuqyJzNz2XwW1rgrO64MDtBh0/cwP898dMeCZwHr3n9n9QlqDHeK VWIpzkg01GIuKk4EANUC/7C7AQAA MIME-Version: 1.0 Content-Type: text/plain 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)(39450400003)(39840400002)(39850400002)(39400400002)(39860400002)(39410400002)(2980300002)(438002)(189002)(199003)(9170700003)(305945005)(6666003)(2950100002)(54906002)(86362001)(77096006)(50226002)(8676002)(81166006)(53936002)(72206003)(8936002)(356003)(5660300001)(478600001)(76176999)(38730400002)(48376002)(50986999)(36756003)(1076002)(47776003)(33646002)(5003940100001)(50466002)(2906002)(106466001)(189998001)(4326008); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0508; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT056; 1:LvdcxQ2rhCd4vJdXAn0DspWXplBqmH+kEIAVzz7o81oLe4TK/11A1LAa6yQTTrhLFi1cMfHEYrikQF47AjkO+TMxRs8aMVU1jHVuW2G0G+tQEna1WX8dTA5aE3pXem/KPnp+PtsklxzquL+zbmgU0BODBlI070J44W9f+cS6zUiYcGGkmKPsSfDkyGOi29EcGJ1VN580zA5OyWQ6khYOCPtlY+yB9bqwoYS8CQMQEU9zu0SxERGSihSdVnIlVMHnbdJ3atGsuAhPGDihemccxrYmqrKZWYQOyKfKx1+no0pAUr51e6lo551lFILeNTVU8mxd8NkdHkQtf9hTwQYzE0O5VFuYrGVQA/JvkwgnunofY3Zx5Z/4Ilth7s83pRKSvq5j1tuf6tiSzaM8jOVStNbHEK7FJDDr27hLFovfXaiPB0SbaHdNSCMm2K6h06lIrg6iy95reLcWOxP5BFLNQVPi2WCRFLdlqqU3lAG+DZvCEBjGi7usaE2OlrXam0MXWussEijC0kp9jLaEo7HUV2PFVI+H4kfoKZU0lTRWf3A= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0508: X-MS-Office365-Filtering-Correlation-Id: c012234e-4d0b-4b01-74ed-08d4a23ca30e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0508; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 3:MhtQLODn/8kYDLsatNZbzkKDRvlOiIebbKcJjtvfwIMwAe/Dvb+CMLwJVs6oUxpZuoS2xrLYpNIzH5ElDPCdt0nFPjAe1+b9Xwg7z70aJFsg3NTAMcaukq9rbT+h93i0gnUuPKBHMnlkTnvqJyeK3v9Hs3rbLTg/GR+ObGOOBbrZGoKTBK6pOq67LcCU5lOFxPOhLjzSkARN7A12QrdP77VNegMoo6TSXidmZVwWqXlw8ef3tNjG0LTAE5PZ5kLMivlfGxkSBOlKUjqaawFJtSZgmVC0+yXIzF5mfcOOsGD0okH02yuFKNHqE6WikfI58nR65gxMzILhYxkqG/RtINkZu9sZMBX9Xe8zGcqR+DGQR2lz/DvUq5F/g7BANy/U5Q93Cv6IMmEXQiEw9N5pLpV88aVsFS0zOanhRYljn0EEKo7MEBwZJTYe+SeUPJGIGEGdIYHkamfSupBOwgQDnOdvu9oLX/p3W3CTfzjY9Z7w6bJ4f13kSaU0v4lgQjYd X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 25:xwNJBy+n0eZFu3gVYa+fJJ+UrCtTAChnWAI+uHoIk/AJtuZwdAFCx0JkmbeV95LQQ64BsXyDMEwbC16BI8VMTeFD43CPVZmwU44hA1FvhwPD8Nm0Fl3ps/CJim3bGxk/ZWBeYn0L9pqf7C9QSXdpJ45VKuSDQZjQiN5qm/BKoDrfxoKGh5zMwl+FoeSZbB420Kc5bLV51n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NJBZS6eNwCRfinI5mUBHuMFVrdzHD/6dx8yOdsMCFd8NvcjIr9azizHz/2L4U1BbnGlHhrncA9f/EHyvhMzz X-Microsoft-Antispam-PRVS: <DM5PR04MB0508822ABE78943E1A19E7E481FE0@DM5PR04MB0508.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(6072148); SRVR:DM5PR04MB0508; BCL:0; PCL:0; RULEID:; SRVR:DM5PR04MB0508; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 4:Oo5mFjn/SvzegucAi1oluR3RKQ8PHUL5+cJNPZyxHLhLcL/Rz7HjcFC+LJI4TXMaVg9VLTuI1bWPgokpJICOWVHI/hXV+2eYsmPghtXZTYHQceGVxE99O1CduT2cUrKhyJf072Ry9dIMCNnBiZrp/FO4GZ5wY3mHnDghi2m777CWCLqZz7a40KNt6pikCMHBDH1x4G0p4Y+xvzZ3vp1InDXhCmOfJq1pGkLSypJI0chqhPhP+FbTKl79TcJjMUPIGBPvp0zW17NxpeZKHdxKW1RO/GRJsR6ooHxV3z4r73zvXQMNMd8Naamhzl0EPitcJmtRMQBqMsvp0HSTVrK/lPbTt8uRu9k1AMZ5rydnDtdB/i2L0Flmr6saPvU05lWy6WPJHO1RljLrz8Ojd4ol4Ii9A1Btx/YBVfkA4SkgRO9Nk7oV7gNAAYr4ah4Bv46XLFWi3AGgoLNbHYwOH3w4hgw6IehhG0U9HIw1LWmrXdt/yJp2eC6VAELZwmVsN/lo125OUUAEHyR6KNrWyhIhHm3k9FcqQdIzCLNxwKy5kXjVjAP0TYzm16Yg7yHMR3To0RwV22G/qDzLvnlZbjEOJaVaOGeR7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GdQHiAbyLGd9TgU675Q5goZx/1d/3tpFz4tQWoV7j3u+hJlTcztoinYEBI9A94Ef5uEk+Tg4pio90rzJ8pEK0PILCzehUz7SZ1l7ncY8cKkcgVArVYuVH6heQkbDixOdyDPp0A=; 5:w3+vUwQmEfU4hrii653OGLUpcfMrbKgC4L7OvP3rZXdeDhh7cnbg+HFJx+XBAgafxxk+U0F0kIDxZVtJ5mEk3u7ej2RCJJDpEmUkpEPi9N2kzf+SVFrNwilpvXulutwtYdLA5G7s/K3ZvHY+bPi80g==; 24:Gt1TGk7f+MoTizs6NxNEW7A26bnrFzaUYxqrgvDeAQS6aZXVBrpE4YrUDWKEqY05IiDKvDVes3NmE9i5ez6JjoPNZq6hdyjRhxcbYpdYg1Q= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 7:nu81hbtwEfiOQFGONnhjD4gcDZCl8R7lLGr14VUdqJOCBI9+GWIwBK+MSdfZWrqwjE7rP0NGGr1TRT7417TIjPI3ka4ryPWChyoj8celnQgvLFGD3ty1m+4MmFeOqVckzCnGOf/Ijz8nSSx1NWC6I9mEkdt9CjTlsSW1bvb8tqXNqwZDOcpNfnfCwF7dG2tfstwRy0lu4pJRhU4ZRONA3bjeE0DrMKPwOdMCUqwT5+NjBxkA5plVgZUQ9mDZxO1sjiERvHAt92mE0XOdLDK+zhEDJPHn9kdsiS4Th0AMLM2U0Sy09d6DpyGt0Z7LYVoDFHR2PbqbsSLgLt3kCCeJ3g==; 20:a7mK+Ug2FXwRB2y5JTJ1qcTFN0ZENJu4Doh4uXl6H7YiXxTvwqjRQeLVbS0OvtnQ0LdLxMZT2yQwFUTo9Q+4rkewqG3whJlsBOWLuNvDYc6vaYk/2De6iwpBj2BTo60/v70W3m56VPUwrNP727RdG6ZDAX+BSUOT/WemMmbHots= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2017 00:34:28.0172 (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: DM5PR04MB0508 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On 05/24/2017 02:34 AM, Bart Van Assche wrote: > This patch is a preparation for the next patch that will zero > the struct scsi_request embedded in struct scsi_cmnd before > calling scsi_req_init(). > > Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> > Reviewed-by: Christoph Hellwig <hch@lst.de> > Cc: Hannes Reinecke <hare@suse.com> > --- > drivers/scsi/scsi_lib.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Reviewed-by: Hannes Reinecke <hare@suse.com> Cheers, Hannes
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 359f824ab78c..10c6adb208dc 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1164,6 +1164,7 @@ static void scsi_initialize_rq(struct request *rq) sizeof(*cmd) - sizeof(cmd->req)); scsi_req_init(&cmd->req); cmd->device = dev; + cmd->req.sense = cmd->sense_buffer; cmd->sense_buffer = buf; cmd->prot_sdb = prot; INIT_DELAYED_WORK(&cmd->abort_work, scmd_eh_abort_handler); @@ -2025,7 +2026,6 @@ static int scsi_init_request(struct blk_mq_tag_set *set, struct request *rq, GFP_KERNEL, numa_node); if (!cmd->sense_buffer) return -ENOMEM; - cmd->req.sense = cmd->sense_buffer; return 0; } @@ -2123,7 +2123,6 @@ static int scsi_init_rq(struct request_queue *q, struct request *rq, gfp_t gfp) NUMA_NO_NODE); if (!cmd->sense_buffer) goto fail; - cmd->req.sense = cmd->sense_buffer; if (scsi_host_get_prot(shost) >= SHOST_DIX_TYPE0_PROTECTION) { cmd->prot_sdb = kmem_cache_zalloc(scsi_sdb_cache, gfp);