From patchwork Thu Jun 1 23:27:10 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: 9761363 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 C0E0660360 for ; Thu, 1 Jun 2017 23:33:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC9C228402 for ; Thu, 1 Jun 2017 23:33:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DD5728535; Thu, 1 Jun 2017 23:33:23 +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 3C74C28402 for ; Thu, 1 Jun 2017 23:33:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751122AbdFAXdV (ORCPT ); Thu, 1 Jun 2017 19:33:21 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:57332 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbdFAXdU (ORCPT ); Thu, 1 Jun 2017 19:33:20 -0400 X-IronPort-AV: E=Sophos;i="5.39,281,1493654400"; d="scan'208";a="23210269" Received: from mail-cys01nam02lp0055.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.55]) by ob1.hgst.iphmx.com with ESMTP; 02 Jun 2017 07:28:13 +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=E5cXW/JMBwdDI4Tb2zEnGJTEclsyK82X2RnjNuBq2eg=; b=REYoQGMouMhduitBVvt/7e/P+frgEJto48/khrLVXkuslPc1RFKaxHtiZlvCuAJ2y4in8yYsdYtN0iEv6Fa8HLmbycnIue84EiabmIZFbKSR0YFUtLKFZA/K7TivSJwzs3PFr2C/2RbJCowkP38Kusav+/8SLv/8hPj6cibbGIM= Received: from BLUPR0401CA0036.namprd04.prod.outlook.com (10.162.114.174) by CY1PR0401MB0924.namprd04.prod.outlook.com (10.160.160.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Thu, 1 Jun 2017 23:27:19 +0000 Received: from CO1NAM04FT022.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::203) by BLUPR0401CA0036.outlook.office365.com (2a01:111:e400:525a::46) 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; Thu, 1 Jun 2017 23:27:19 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.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 CO1NAM04FT022.mail.protection.outlook.com (10.152.90.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Thu, 1 Jun 2017 23:27:18 +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 16.A8.51736.4D2A0395; Thu, 1 Jun 2017 16:27:16 -0700 (PDT) Received: from milsmgip11.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; Thu, 1 Jun 2017 16:27:14 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-a1-5930a2d40b9b Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id D1.93.11415.3D2A0395; Thu, 1 Jun 2017 16:27:15 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , James Bottomley CC: , Christoph Hellwig , "Bart Van Assche" , "Michael S . Tsirkin" , Johannes Thumshirn Subject: [PATCH v2 11/12] virtio: Remove code that zeroes driver-private command data Date: Thu, 1 Jun 2017 16:27:10 -0700 Message-ID: <20170601232711.29062-12-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170601232711.29062-1-bart.vanassche@sandisk.com> References: <20170601232711.29062-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5ke6VRQaRBnufWlqsXH2UyWJjP4fF 464ZrBbd13ewWSw//o/J4v+vV6wObB7TJp1i89h9s4HN4+PTWywe7/ddZfPYfLra4/MmuQC2 KC6blNSczLLUIn27BK6MeYs3MxU8YKv4e3oScwPjHdYuRk4OCQETiZ8rTjJ2MXJxCAksZZK4 dXU9K4SzlVFi+tTDjDBVDS9XMEMkNjJKdC4/DtbOJmAk8e39TBYQW0SgUOLStg6wBmaBw4wS M7aXgdjCAqESd8/PYAOxWQRUJNb8Og1m8wo4SPzef5cFYoG8xNktO5lBbE6g+L6WM0wgtpCA vUTT4dlsIIslBOax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: 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)(2980300002)(438002)(189002)(199003)(9170700003)(8676002)(76176999)(2950100002)(33646002)(106466001)(36756003)(81166006)(77096006)(48376002)(8936002)(189998001)(50226002)(356003)(50466002)(1076002)(6666003)(50986999)(498600001)(72206003)(2906002)(305945005)(5003940100001)(4326008)(53936002)(47776003)(86362001)(54906002)(5660300001)(38730400002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0401MB0924; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT022; 1:04YhteYBmbIn1Baj5qbqxaNIIPFIPmK5yZMiP7chzIZe4SfQ0b5nVLKTi7Em2R5fSSjcggQAkYeb08XhJprMsXetDWf+ODfvNK+tJDUaXxNMbXmoh6lLsNzB9y0Zhsgsb+evHFUb6sKwY3MDTsw7Kd8PfKfgdJ7ojsgzeB25Nsfwv1yCU8Cz7TvnFlvyPJifVrrg/EyGUP9E8Up+/j9azSOn1hhO5x9wrxsuZEfBhBWGHDS9l2qEPCsyz5K/8XlMG3W2vPXD3xY1LywqcYHUEuAhvgpuRlyklzDo4yRE/0VT7Mo4eob41oSb+cXdrcdzGee94XvDjKRBFTv6JrbDEF0Oc0ftNJxFk74lxpN0EetA7/+lAZOjTjtBX/LBa1LGS7xnLtNYA8LiB7OkbjPChvlQZ+WEi1hzlhe3Fx4CU8Qb4ROTyVHBxddQ7Os3uO4LQ6xelbAC2TCv4jZMz7E+EUrCGtUfTcuyngRIUB045SPIR83WIKe7h7mPa1zRjMGWRuj0k/kZh7O1NpuXwHxx5XNSEfmKJnZE4zRppIRo/Y+HafauzVT9OISdd03FrhYn X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0401MB0924: X-MS-Office365-Filtering-Correlation-Id: e17989c4-3554-4f9e-78c2-08d4a945bf3f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:CY1PR0401MB0924; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB0924; 3:4hg019NOfnRQ7QvC4oIVA3oZuhn0L/tjHuvg5PwaFJtekOami7xUBSr3i3HivN5MrEz/x9YkSeyVXs+mu39yNUi61RjEvQNTj/E00J2vDk8dIyLgMrTHe98E4V/Z3mta5XHVRSWfX4bps8WIMx6jc+v8GzglPl2kbQlbGxkpqiQmjZMRK3TnYmDDWEHX8PE6SOLUZofnRu1d4MHJIlYkLgIZO3wrYGpIstWSCOvGQVB4cmE59+LJJzqWHq4ecM6Rf5R9SqTzMSK52+ct95mHixFKmfJe34lXhebMrvyK+mmTrj5YyQpTAgM2aqLdEoD+47OLDFOhuYEo84DKA0CcqtCuB8Ciph8nj3I74ixm/LHuhd1qFx2LF+RSAU5hkCgDOBYx93TX6Ey8teccp0rLoNz/znzpJNykZSFcHqSPbP2pByJriooNKX7FUlP58gPVIuasnEa5PmWgiT8c8hjM1TTm8Q7Riq24vAxVZkyzKp4F9udu/agH8PhtiySHFBIH X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB0924; 25:87i+yNwmZBkcdn/qrdAWgxMocXslCcssWGjAAiSEujTvxKSHz3v+loEbDCcv3+rg1yW1eCBlZWJ0nqHo7646/bsR4CDP1emUr2NvryGFOFOMEs1/uWYoD+jwLi1sSkew0LWDB5lvqSolO6hL4NvS8WGWMbW25G5BOjQqqcsHtZJQKx1y/vV8M8udmdEB+i8h/0HOltFVnQ6QJT9Dzn9+UOSUqrpomUsKQ5nAa3yKbowoRu1vQEmQGOEfnrAdD3gm4JfFpyKYxYgjT6WfQ/jtQ4G3lB00/ek30cJNfZnzvZzKZOCLHa8t0Fh3geU86fdweskt7aTmg/2X8R78xUAjEviLtm4xux8aJSpsR8iE9dYM7lnK9uLMpu9Hoss/lpYfUvF6LyOsPzVop7ieZgxvR4kr3Z6PhhXncuATEimu4krE+f6sI33DrP0RjIB+uh5Ec6J33hL6Zre4tc2kPOx2JpR0DU5dkXQOSvgyD53xm8A=; 31:hfgN/p9CP3z+sbcUB7sw8+Spyjfhv3gyezD8S3NdQx0l5NAKFu6nb5JgbGjlLqhS42GODHkM9Au8DgQdKe8ELdtepf0Q0JposxFh7pGda4lS2zNDDfKCr49F8UsRGNpae8bcR9f1Sqep7qtPewcwnbIBaJmJwrYuEB/6GYDtPEqu68e4olXamoQ6ggg9rhbxLN08qWueoLhCcAS737Q48xFfnXByBc7eAMQvJJbxssHyFfIs3RmSgytriR9DFN/+iDKilLXUxXSiO1doF0nkUw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB0924; 20:AogiKYeS5uR7IzvGJ2cA4WsPEPp/bilJBSub4FqFz8ACh3axg4js+cJtlwu6617CQmi0Ji4vC+an2Kj9+1d5KfjzcZ4GPl7/rr3osFr27F43429mndGz3he/mISEkZf3h53cai3uS6yhvV4NorLG6714yIyZKjZqdvUaFng2b8jyADFx44Ottun3ULORNHAiuxuGddTgZit0KRux4u6fxfd8BsSh5BSRZoOUKT/e9g5ZObFhi6rozjjZWcslRlGsYQjta75qzv0WxX9pZsG4Doit66gbM1ONaxzbBCPGUUHUcJpVQmOtwhVB5hSBVfKLdpCKPA4XXkd1hzMmYvLX6UUQMMhbSV1Eu8FcDdCCNQhcVdaPwnyKbZoG+lRUnw14ecfTe1RUFfjDVnciFQJ8RobGukV1DqmwvAI3E0kN2CehxdYMvqKFpc25aBHsdvtdVTRpDs9IE1/He3/6Y7oFF/HeLgCEhHcFo9hLyjSjrCeXCNKCUtc9FxO2cJQeSnxn X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13018025)(5005006)(13016025)(8121501046)(93006095)(93004095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(201703131423075)(201703061421075)(201703161042150)(20161123558100)(20161123562025)(6042181)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0401MB0924; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0401MB0924; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0401MB0924; 4:aPV2zEpEA5nFo+SUoe84k8jex1N8tcgqwncXfZXv?= =?us-ascii?Q?flPeedGuDyECccPDB+Fby6OFP+2kaaMHP41r2PAmxtmmqXCRVUqHv+5sNDWS?= =?us-ascii?Q?goZBfrBtLcFinXzAeScmEHYw8LkbnWEFmVKhPYBwpccCgJ49HikxM/bzjlP0?= =?us-ascii?Q?IzXa/UfLx49rLTfaVY+5G5mOuTe/J1Fuv6bED+N8kY2mrSYU8dfixt8dfEBO?= =?us-ascii?Q?3IwW+PPLPbYtNXeDHUVej7kbNxoACmqGdj5DovYoZMB1tt75fxTurZawXb5K?= =?us-ascii?Q?TYcs5UeS4s6L2TF2V4Ygjm0WKpCWCdV1AWkyiZJWph9XkwtPrGnPOjsbmfjW?= =?us-ascii?Q?yH0/PpR++z3pIomwMbbCyqVjH8Y6kayXDgHH2K9AcMFxJkAxQul6HDWxI6UA?= =?us-ascii?Q?lw7P1QzNfftzctBOS7Gp6dgSETRzCSiahKkVHWd5TF3aJKkkXxhWnoWZm5ha?= =?us-ascii?Q?zaaRSDKSAd1ZdfL9BP1jdBhVv/4Mtcq/LRAagTraBGAeeC/0BsjRu2MX+GWq?= =?us-ascii?Q?c1lntw+mJ5keWRCBNBYvDwKB39dCst3e5YGXC8yyWXDr398Ec5zpMtWFIXPg?= =?us-ascii?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m9lRpDTju0INwITyZUqYcZgR8qz7vWLgTrwApM/A3HWanb4ON497ymSZaHBZtQByvymUuLiKeXOr1bid91sElGoqoTtwJ4wcaavJE+8ZsDsiZQcPAJ6yod0rSu88a92N93Ft70B8q+YVfTBIHi8aZUW4V7OIMi9ArVpxLul8KQ7b9RRzgH/vY6WcmeLBLXz9/ufMjVQXlt0yBITROtarVAQdsfZEBhOVQbk4mDowLW/07RCZvrfw0sEvIIa/d56L+9AIV561A2nRABPDaIaN/rAWD+Idbef3yZg==; 20:Fi3iD2ADBQBhsCFIRGwqX1g/yLFhJhYqQXdMkHb1lrHBi5De/de/0QFX19DBuq0X5w3TnePpFRLGQmizRpYgwp1nbRF24Ogb1vD71KFw58hu3pcSERaxNJBDkl/ELeYIp/asby8XwV2aGB6dt0QfnOYF3oLvz4k9BzqjKPBDmJs= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2017 23:27:18.5965 (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: CY1PR0401MB0924 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 Since the SCSI core zeroes driver-private command data, remove that code from the virtio driver. Signed-off-by: Bart Van Assche Reviewed-by: Hannes Reinecke Cc: Michael S. Tsirkin Cc: Christoph Hellwig Cc: Johannes Thumshirn Reviewed-by: Christoph Hellwig --- drivers/scsi/virtio_scsi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index f8dbfeee6c63..dc2e97c543a5 100644 --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi.c @@ -547,7 +547,6 @@ static int virtscsi_queuecommand(struct virtio_scsi *vscsi, dev_dbg(&sc->device->sdev_gendev, "cmd %p CDB: %#02x\n", sc, sc->cmnd[0]); - memset(cmd, 0, sizeof(*cmd)); cmd->sc = sc; BUG_ON(sc->cmd_len > VIRTIO_SCSI_CDB_SIZE);