Message ID | 20170519183016.12646-14-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Superseded, 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 3DBA9601C2 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 19 May 2017 18:30:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34EF12856E for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 19 May 2017 18:30:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2947928573; Fri, 19 May 2017 18:30:50 +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 B259A2856E for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 19 May 2017 18:30:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756095AbdESSaj (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Fri, 19 May 2017 14:30:39 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:51270 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755758AbdESSaZ (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Fri, 19 May 2017 14:30:25 -0400 X-IronPort-AV: E=Sophos;i="5.38,365,1491235200"; d="scan'208";a="121513939" Received: from mail-sn1nam01lp0113.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.113]) by ob1.hgst.iphmx.com with ESMTP; 20 May 2017 02:30:24 +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=WmUc2he0WwX4/QYzrFwn8FGbr2jZfDplwUbaKMd+U4k=; b=FVgzLMSk96qJQe6NArPKkwUCbAgQ7bWpuV939Pf9ddiFWiuOx3RoRcoy7Sy6XnOJ5TQqXOh3Ykzz4EsL96EfU3NHME1ZrtxBof6nawWVGHXITl/43JBhbsXTpUNyiBoQuuBmDVcPP0Ggqd6NhJLUSRTcs+XVhaPzNYeJURi2CeU= Received: from BN3PR0401CA0016.namprd04.prod.outlook.com (10.162.159.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; Fri, 19 May 2017 18:30:22 +0000 Received: from SN1NAM04FT064.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::206) by BN3PR0401CA0016.outlook.office365.com (2a01:111:e400:51d1::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; Fri, 19 May 2017 18:30:21 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; oracle.com; dkim=none (message not signed) header.d=none;oracle.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 SN1NAM04FT064.mail.protection.outlook.com (10.152.89.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; Fri, 19 May 2017 18:30:21 +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 D2.5A.29323.CB93F195; Fri, 19 May 2017 11:30:20 -0700 (PDT) Received: from milsmgip12.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; Fri, 19 May 2017 11:30:18 -0700 X-AuditID: 0ac94369-548749800000728b-93-591f39bc4d61 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 2F.37.18148.AB93F195; Fri, 19 May 2017 11:30:18 -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>, Bart Van Assche <bart.vanassche@sandisk.com>, Christoph Hellwig <hch@lst.de>, Hannes Reinecke <hare@suse.com> Subject: [PATCH 13/18] scsi: Move sense buffer pointer initialization into scsi_initialize_rq() Date: Fri, 19 May 2017 11:30:11 -0700 Message-ID: <20170519183016.12646-14-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/lIg7nPRSwWvNnLZrFy9VEm i439HBbd13ewWSw//o/JgdVj2qRTbB67bzaweXx8eovFY/2WqywenzfJBbBGcdmkpOZklqUW 6dslcGU8eDiJvaCZp2Lpo6usDYwTuLoYOTkkBEwkPr1qZAKxhQSWMkn0TPDoYuQCsncwSjyd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MjrHxN v23m/n/tH4s204nNsn1leqs8HbtPK1d87ivi3MD65UpGuOcD8SMGepslTMVs3jE7dyv8P+8f xBiUMSP8XLISS3FGoqEWc1FxIgBdICAewQEAAA== 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)(39840400002)(39450400003)(39410400002)(39850400002)(39400400002)(39860400002)(2980300002)(438002)(189002)(199003)(9170700003)(6666003)(2950100002)(86362001)(38730400002)(54906002)(77096006)(72206003)(478600001)(50226002)(81166006)(8936002)(356003)(5660300001)(53936002)(305945005)(8676002)(76176999)(50986999)(36756003)(48376002)(47776003)(33646002)(189998001)(2906002)(1076002)(106466001)(5003940100001)(4326008)(50466002); 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; SN1NAM04FT064; 1:SRRsjZExn48iKyLA8WfvOpyl76/6pDt25DMOz9fVzOrc9DKq0Y5FJ4a3WLbua0YtQxQRePvx8TTfpwWVmYwVnz8Am7Oe2F/qAqEgQDm+gfonofL6jduqCio+QHfep+PfpD5/1nwPIF/2kmljlp9JFcsBSN2a9id2sVyApAqQYo1k6gl3RU9YYoyuvusZJhFzq09/UT2gpmB9FDgV0UxyBoctZMUBJARkg1blI9fgm5i1/VRvq6G+YvpDOkF7Q5eVO+pcO2jgiET7ppUmy75TyaeT57F9p51WjS9WaBvVmar/YfTQUR1xHrhrjSpWwTNJrFoh+etjPLNN6TIYJ5GhRYisND9KyaNDRbkMFEo6viLXoytewiqVLGqbgMl6fJb3+Q5ApJ+9CSxBoAjcdQftVwHebRDA24TUQKYL7ENKHBbuupiFNsSNA29U4cXVHv3O1l3cmzJdkoUKmQbfTs3Z3r6BjQ9Si5Ow2wYb9iHdYNrFWLNKyL042epsNIl/oMnr X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0508: X-MS-Office365-Filtering-Correlation-Id: 06c36b17-f158-40ba-88a9-08d49ee51bd2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0508; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 3:DUznwSbE9dqXzRfgndoOuS3n3M+0RblPSVz0YKhj66o9lsEDzj2/4gF6PxNGyObAnGrMmVOmJvgs2pfjZRjCQGRXw+YybeXUpEkqtj7z8RdWJSGYiygvw6zx5B6IdUoNew3cNS/9tFrQBw0foCor5tzeGLK2IPFQvSyYZTVUdziqhxzC8nFvvUyZ7yq4X7b3FNWWonk+cHjk8uqVTyt5k8QC49IhJPeg9TVPoibaFYKm2gzw+36Py6ECmZ9NBcyT0gmSJq4XBGerb6jbu/7cedWdLrIZtnMh51wYMzp/F1xN9OmAvPSsd3rC2oswgCtznCnBqccPLisK3f+YcFG5TjGswXbRbCfuydXDUpbVVsFMetgKqJUYEqAXvpdMjVP4Em0/xwY/Fyg6ZR/8imgPJBeyhqYHgT3Omq+7P0y1G6xkDMbAHt3wC1xJkTbygWMSIoV1RDtAN29KHZYxN6oq9NhVYYBvKB6Vgai1KR0V282lVu7q0si7Evnlpa8Y+UiJ X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 25:vd3VS/vD5AghVHhHGKpmBPBsMl0dpKSKWMQcB4o/KHXeyIWQnY9k9+DvTP74m2tbraBX3U2czIKSiIl1Oj3ts84wMjm2b3C97ZvwvXk3VYBGj3oRNdnpyK3BquBGQqED4CJf24oACBIcYwPYpyZdNXjkkzheG9JiJFKMSzpby51uzSbxou0lGAGBnnyVV7niVhZ6P13Y8DIvA513speJ1VeCDSk8xibGWjmYqmrYcum8EPx0GQYveWnzkFkCeH3GBDRlN8IrDaX7z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am-PRVS: <DM5PR04MB0508660269EC3FBF76F99D2281E50@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)(13016025)(5005006)(13018025)(8121501046)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:DM5PR04MB0508; BCL:0; PCL:0; RULEID:; SRVR:DM5PR04MB0508; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 4:qn8r6/YtxJcxu7MG0lFNoN1ciVLqyUBN3dlXs+Z4rjxogWmKy3pOrwF32hqq0PLEVVG+CztdnRip0hl18NZl8salNBv0HrNNUCims3No2EfY0qJDsi8ff7Na7lKvJvHDjvf+14jYYzOBdyx+m17CQKcy6oU+F2bzRv6zL+cEOon574yTLzrwbBefk+0nxQt7XfWvnofNBLickI7EDOfQhjnrjcA/fL/P1gOS6U/BhiKoHldVNGFNvSBwDM9ciahrWX8K/xipi2SMwxid8k9OB/sJOCflqDRqr8cm9W3hew1vn/a7kfbgK3+qUNcl8PR8e2yUcn/fbljbz4VQ4qvRUvXeSc58zcVvK34fdesQ5E30NYqznqwaSW75PJ1E4IKjC8NQBEH7ZC9K/2H19USEj3TXyqIu0biB33rkAYYDa06+eGCxMeIdUSkTtaVrY/llNckfooFAdmBKPYrc2ijrkQKugTBXwNWOsize8gNffUZmEOBNKc2JHbVHbU5QLknM+gf0Z6bNLuoi0vaZ1cK+zZIW7ii52mSmHNNEeYRv6i43XdHc+kHifotlTevEfnfcE0Z1/Zhs8WXC1ugDxvonsSkZjGc96iHa6VO8bOSTQAjuH6d1c/u66dZSFRlhf3ogC446BNr+CdMzUO+Q0t1HGJwU1Dp0RwjbrSP13K03Heu7mOM4NTM6VkXv5N6ZBt3q1LmZKMavJ+NAh7aidpGnXI90p3eOEYwqulB+sLot7gjgc3hdi/4L6D1Z8sgXQWpjl/y2Ni1m/PsNAhYfvEoBM5YT9DWw+5rFvSY8grnRX1+yN32RCg/3aJta/DpumAhSwpwVHu/bfgfwyfJiMqwmzIdnCO9e0BtXVKM22jfVJq7ynomO3yR1oWLNTPVuVX+i X-Forefront-PRVS: 031257FE13 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0508; 23:ehww/TeQQaGrblbd7CZ3Sp/ypISa56RZsylLVk3/V?= =?us-ascii?Q?lnCnvYmoOt0fy1xFlXWJwwlVO1O/CsiLc39Yp70upqyfZaFFdERX/tKt7hOI?= =?us-ascii?Q?2Hh22CfNmPk7lBVfk0oFiUdP1MlFy6tV3dqraH2/HrUwuTnopog12OiAOIJe?= =?us-ascii?Q?MJao5VMmanI0Twi5h5WU32NiVj3aaahsKHfYUwI0YJgQu7PXhCe68GO1nryj?= =?us-ascii?Q?eXlu3lmYiRawcKeEU0yOrjCyo5sPzcspVW4TDo81NNs7zkCaBULf1o0kfZ6A?= =?us-ascii?Q?GBeAeO/i8Ptyq5nr8XXRIyf0k7GyH/MZs/A1HQPdp1qCbSQ69d/is/5psQkA?= =?us-ascii?Q?Qw2Yy5jY+XbzAujMv70nMTMyiNiKk3yvuK2ac+hKT+2ai8eCDOiDz9Ui4/sx?= =?us-ascii?Q?6lMd6reCU53soff9ZPFxPuJhMbS1n+xFQAvv3uMEIzRfiIKQrbUjkcXDpHm7?= =?us-ascii?Q?ZxOH/PirZJqMPSG0DIiMLoPwe+28EjRGqoIcMJNbcx0nnHB0O963HrazlI09?= =?us-ascii?Q?pl4PnB1O7q1xgEoUM9vlSbvmp1FIJBvF0G+n9Te2raL4peCZlRtEp6LSPUs6?= =?us-ascii?Q?S2XxAVdtszBfMczG73LIEN9iY4MfenTzjZZQgq9dmyVf+wcHKyZBuFSyUNyi?= =?us-ascii?Q?lIeC0Xm5saakUyQKe6qYyBAy0AixaJb5OHNLp8P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UpGNr0Y=; 5:ECdmpNCrP85VHxr2vG8RtKzPOpOx4MT13BLjfecTicdmjBjfVWSPYDwjjUdqY5CNefxqMc1LWnDvmZ6ZPbxHeuDiRofulTWZButrwmDkD+urs96kAqa7zMBEv2CgPFaUN3fORvISam5saMdQPC4uWQ==; 24:dd0b0RXLXHgvHHbAuTYnS9JppqsNCZtNf0Z/gEhlxtpbNSy0UPEawi4FiBJPrnoRnK63chHoKH+7bLhM+G4O89wVJ71byRZoIxt6E33V3IQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 7:IoH0+TdM0/C4Nl5HJtlO93u4ooTt3cpjjyeuyRtwlYWHwNBkHEV9TDF4NKp1HP/WQr9sPLLjzdDMz71FJZ2hW8eHWl+miLYPva+KzYb0ze9F+0hn1kAU+6jb5x9cOEjoS6DUmSWwCDu3vPw0IEbT021L96nnracGYmq89oGG0VNgoSDib0U8jUBmC7OkOOp3Pu+9sLWjg0ud0qJSsHJB1IkoG5mDLhwOHA3AXv0f5o6+ldDDjdq3e42h8iBQJMlDRjio/oodUl2WJ7N2Rs9FBk3MaDDy7R1Zcqz2cS9LI9wnnkJ8CkJXTV8sQ/UKN+sQ17165+u6Bg37YBwcNdNyNQ==; 20:J0cDT7KRN+hlUDW8yz6vbwfOa097oAaZkh2eZEChqycVnT6kf9b6ZRjcCfbFp5xMt4yEMcvqiU08UpDHhx9sLyTYbZUc6ZUcGUf/G5DXHJbhgziZtzZnzylFsa7AQkQCxwHK8hdNHKMd+U/zTKhi/MtAtDgOJZOU9biGMzAwJ4w= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2017 18:30:21.2876 (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 Fri, May 19, 2017 at 11:30:11AM -0700, 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(). Looks fine, Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index b2e3dc22ecf3..eeb668935836 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) memset((char *)cmd + sizeof(cmd->req), 0, sizeof(*cmd) - sizeof(cmd->req) + dev->host->hostt->cmd_size); scsi_req_init(&cmd->req); + cmd->req.sense = cmd->sense_buffer; cmd->device = dev; cmd->sense_buffer = buf; cmd->prot_sdb = prot; @@ -2022,7 +2023,6 @@ static int scsi_init_request(struct blk_mq_tag_set *set, struct request *rq, scsi_alloc_sense_buffer(shost, GFP_KERNEL, numa_node); if (!cmd->sense_buffer) return -ENOMEM; - cmd->req.sense = cmd->sense_buffer; return 0; } @@ -2114,7 +2114,6 @@ static int scsi_init_rq(struct request_queue *q, struct request *rq, gfp_t gfp) cmd->sense_buffer = scsi_alloc_sense_buffer(shost, 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);
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> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.com> --- drivers/scsi/scsi_lib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)