From patchwork Tue May 23 23:48:38 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: 9744457 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 004736037F for ; Tue, 23 May 2017 23:49:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7B4E28818 for ; Tue, 23 May 2017 23:49:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC5D228854; Tue, 23 May 2017 23:49:42 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 7235828818 for ; Tue, 23 May 2017 23:49:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031235AbdEWXtl (ORCPT ); Tue, 23 May 2017 19:49:41 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:3587 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966793AbdEWXtU (ORCPT ); Tue, 23 May 2017 19:49:20 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="116862559" Received: from mail-by2nam03lp0051.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.51]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2017 08:07:37 +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=zRun8ZJywOS8UUtvhRcph7cFpTCjQE92dt76aJfZuFQ=; b=cuV1nqDKqmdGzdqArxNGF1M7OOoXoPXkQYMVTz6NDxZFl+FxwPmBJlCAGw4XxrzSWUpVSLomnv9TpPGr9fc9U7rlQKPEYHg9JMmY7fu5ZACQuvunb6+hTOTe4emrNY0aWJ1HYKzUfkRkA9ADXtWjtFa4fEELiPkXELDTOpQUHLY= Received: from BLUPR0401CA0013.namprd04.prod.outlook.com (10.162.114.151) by BN6PR04MB0354.namprd04.prod.outlook.com (10.173.198.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Tue, 23 May 2017 23:49:06 +0000 Received: from CO1NAM04FT016.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::208) by BLUPR0401CA0013.outlook.office365.com (2a01:111:e400:525a::23) 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; Tue, 23 May 2017 23:49:05 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; suse.com; dkim=none (message not signed) header.d=none;suse.com; 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 CO1NAM04FT016.mail.protection.outlook.com (10.152.90.168) 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; Tue, 23 May 2017 23:49:05 +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 7E.64.19026.F6AC4295; Tue, 23 May 2017 16:49:03 -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; Tue, 23 May 2017 16:48:58 -0700 X-AuditID: 0ac94371-41ba798000004a52-0c-5924ca6f7024 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 3E.F2.18148.A6AC4295; Tue, 23 May 2017 16:48:58 -0700 (PDT) From: Bart Van Assche To: Nicholas Bellinger CC: , Bart Van Assche , Juergen Gross , "Christoph Hellwig" , Hannes Reinecke , David Disseldorp , Subject: [PATCH 17/33] xen/scsiback: Make TMF processing slightly faster Date: Tue, 23 May 2017 16:48:38 -0700 Message-ID: <20170523234854.21452-18-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170523234854.21452-1-bart.vanassche@sandisk.com> References: <20170523234854.21452-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRmVeSWpSXmKPExsXCddJ5kW7+KZVIgwXfFSy+/p/OYrHgzV42 i5WrjzJZzLlpZNG2+gyjRevSt0wW37dMZnJg97i//QiTx+EPV1g8dt9sYPNYv+Uqi8fm09Ue nzfJBbBFcdmkpOZklqUW6dslcGVcanrLVLCKq2LDonbmBsbHHF2MnBwSAiYSRx+/Ye1i5OIQ EljKJHF8zW52CGcHo8S73g1ADgdY1fcFIhDxjYwS9xY8YATpZhMwkvj2fiYLiC0ioCMx6+4L sGZmgT+MEkfedYAVCQt4SLx62ccEYrMIqEpcmbeNDcTmFXCQmHboABvEGfISZ7fsZAaxOYHi K/dsYwZZLCRgL3H5uzJEySpWif/XNSBaBSVOznwCtpdZQELi4IsX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OPAttributedMessage: 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)(39850400002)(39450400003)(39410400002)(39860400002)(39400400002)(2980300002)(438002)(199003)(189002)(9170700003)(76176999)(50986999)(47776003)(53936002)(5003940100001)(8936002)(6916009)(478600001)(8676002)(1076002)(305945005)(81166006)(38730400002)(110136004)(4326008)(5660300001)(33646002)(2950100002)(50466002)(2906002)(48376002)(54906002)(50226002)(106466001)(77096006)(72206003)(36756003)(356003)(6666003)(86362001)(189998001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR04MB0354; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT016; 1:CmMyCDpRX/HCPzg6TtwV/1d8G4JgpFZw6nTEhfwLdOCeQE5zTu+SM8xEjRBm6ZNNhQKEzK0GogOeg0KcWvkbsNSqVGZws9SR2LEgB2QQ0T3lQ1rBrFRBSR9fA/wlcGYImuc0cfRwzl6xtzDCEExM0bJ9f5CQcIL/Wp/8VosQg8hq8vaayby7DkfDS6PdbZIsfWOwBdf1Oe5DMMzXWrl5ods2E7my9/o7PrfBzBuNJTpeNWjSHdXPxgLE92dLB3/BPVWk6yOOfqgan6B4wI3vZ/3cB26sgKrL+QS0++NIRawOYdkGlVd6UKjBPBdnoTkw1pyDthySAPpU91QtRdhrZPEP+mPW8LGIC7hjxQCLFwBvr5U5iuXYT8XapxPnFES58YLHJ4BzWM44nB9wVs7IXIcBEQ6ih0YAKfjh/1BejYG8R4ZQgrnLGmg/PHEIHTpCqijYgHjpFB972iTAHoFVWbciMfJXQufHdy6oVj6pVPg2Q+xBdfQjjzDDlbpVZ/3ElREXHDEh2+TVtNBAssSqWOk93kj6HifhBje99nVW0CM= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN6PR04MB0354: X-MS-Office365-Filtering-Correlation-Id: af5a533c-4e5d-47a9-a16f-08d4a2364c31 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN6PR04MB0354; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 3:ZC4cOizvTiHywCoC/urpYtvgSQqcbk7qrRiN/OfniJdQxjXI2cqSwWvEWY3jpByStJGMIRnElN9wh2HOPAyyo7ZN6B968naKiI2HcPbLydaoOXircvkmL8UXNi9J9X5V/X/7V6GN1DMgoysw9NxZVxyKBqogVQS5WtjkRNcgBdZu2FaHWJ29FounxU4+IEcnPvTlNaWjc8XYgHgRfMKm4NunJoL6HGN+5vbkS8k9BDIUb4Pmg3UDtFDfTOV/N4JIbNY8846fXJIFZyCTK8xVzyESqsW3D6/06rkN4YWQOUEhOGJ9guzkEHDUJik1eA1qELroJkncShCDaCGe/70/CFzbbtjtlxGkPjrxHTuS7pl2LYaEtdCuCU/L1DtvEwGSWOzWMb98Bq12QLW14aMOCYTpHVHZau1vhPw0V/4pVEweUpKXNc3QWN8Ey7n9GO7TWbnVc9L95Y5h4qp3bwR7LcZUVjmTucPC3Z5I+88JIx6p8OcBqB/g23RqH9FbbJV0 X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 25:nP6cmSDT+YlgjIrG7PpK2P3Td316HJbaMnY9qlMuBE6SYJFFnRMgHUaLgamrUMbRBWNyzvqKPYNOctXLAM0k2YjfBlesPSxChUmq39Hk0o1HyY21ywl4tBx8V+tk1BrrgvX94EDdPos7oy41o4TubZLqVYpPwkvOqM2L8+wCmXrmvzq5T//IiiXn9HylF9DtAdR93nWzCaEGGsMymLhWKiQipR8tH+S0Z5q7Sx74JAPXqr56HwMcUhcrwoygr/0cKb6H/d/hkniAZJAHhpByliY7zfAEy/kuAmiKXu//swMl2jOvDImyAKtWHqbcY+E5KfHMV+FEfVwmms5feZL2v7qQAVO8kfegSvM0hlXsn79hdhmApszYR9aZc7b8KcvMZWYuu/5j5RIgc1lfRDHMxz4TM6k1Z0cKztftPCBqyIHOqB4TJHKWO2e+nn4z5ZXasTg9MuCPHIrUbVZSdYINhJtUYBPxCWce9pnQfNaaUgs=; 31:kV70NGp6AJet4DhnqLiCAhALQs4IHPxiDpsgCqauVQL4haCXEKWX2Qg4iEHeYpjpuxYqZA9EfOwnPfUUxL3PcYvfk9P+pYYvoXRWl+9EHgsaAFcynwZanZQ2XBfRC624JYaF6lfyQp4McwsDzgqy8uPZMfKbZ/e0/wZ6723VgSXHKwfwusYuuf19e1QEGkvWbSXoUCG+eOVqqY8NfGoWZzfFEpPNNau8Xc9ZBFdekKsJP5q8rh8A0gI6Mh20GzSYbUf0f4R3bsFwzZxItVNwfg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 20:WU+SrB42E/9XK9ctoFZvuRn7nXpfu5Wjj0HISmLsiwGzOp/bURT1JYJqjmliB0zt8i4eExoPOcLiu31R70idG1iUgJt3U71avfvIAu8IyNGV2eg6CsAMqb67pQy3/Qh2Bz0Szzuzvc3/9SQYxT0aHRZEI3thOOmJ+zBrnCVbC7fks/ghJVhqcgWV9bOieYq2D5jSzL6Ng9m2ieohn2KBDtpt+hkC7gtU8GtNCpjLnCjc8NS2SWvjlvTyrLHsMZMpjuxGoG4JpHQhRQc6yLUaT3UI2vmyh6HAMd66apYKh3Bm3FQPc+dyl+265cuzwZxBszcOqCG46RcMTjCxLXaIP6CKRqNVZlphrInMdB92z4mfGigbBTLPcrbUfJpsbOFX7yuMi87BlGDxyb8Eua9+JeRXzKsh0OMbVjZRQpeal9NIsAOWQUS4wyi5tg5QJI75aMSloLI8nJgwoWuAUCqcZ/+UPmjWZbfhtQuRuXST0N8kRffkY1VfoWx+4+JVxRrI 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)(13016025)(8121501046)(5005006)(13018025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148); SRVR:BN6PR04MB0354; BCL:0; PCL:0; RULEID:; SRVR:BN6PR04MB0354; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 4:YMTmJomHGmKJBfyZ7kwpHqoxfZEdts9XQ8cgBlcxnb9ZbRV4Yn8+HkcYmZPXSlYo4bYdsd2ws1LqCdbyf0EnpaU38hpPp4FsYAbN7n/54oSSZSUqgI93af8pQs/CGCsigo/Zjdsp8YSvH9liHI9jTdre2F/QQV0Jgble1hDK+QD62LvUOZI6yRtWSveqaHRE0uJJNcr0oxqQ0tmiooWsJg++Q/C6dlHBPEuEQW/uhi/oUMwmQqUeAMrBQjo3FI+slKow0uo4mtbLZOue8pCr7Ke1QIh3TMOsQHi/6dCRqaEzhs3I6il+RhQC/dRJfGQcb7uB1e1DYix4So11EzmzX8NR/Zpkd79mDnsDNVzvsODHDbnU6eqEjbUCisBLQOlMl7tggXRdPxsI9PAseIggeosvjNvRkTwJHmaCzKQjMbvvW63X236EnWjYl0V9NiZFQC9S5W+8p46LqB3+EuTivt+RMbcLPSlhxVV9V/9HlNxlLiBBg0sKh7vvVOoKNGt9IVayuKV4lfWqHiP7FCOHEp/e9tRh61R4Y2ZL9hcoPpUK3RnO4S4pSAgrp3jOQzBG/sfAx3s3XwDb/ybqiEBhDHQK7U6jML8ANAuVHSI9iAHDbpnSSI53bDb28/dg9Dx/hzaHgpEmsLjZSs4J7yYooW7qbwWb/iBANJrR7Fj6OFgAU7LYK8WFbVVbuAi7C9FoLsNy86rkCpivmi5ylAEltLoxFrG72zvCgWU5e9JVVm+gpsmtx5OfEffN22/K/McYYnZ6dCmt6Um+s9fTemaJUQ1bd6zaiBsbU4IkGjPcGUqlwCeZN8qNAqvsB4T8v/f+/NJRt20xvbXPUTHlTR2teBmWxzSLbatjarUvKeoDgQVnQLQ8xpcf18FRbfCnyK1j X-Forefront-PRVS: 0316567485 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR04MB0354; 23:kulvsz1gEJU7Sar7SVoTiDdIPESXCpEDHki41x0Gx?= =?us-ascii?Q?N1RUP38l8u5A7w/sdEKcO3pkQ/3Kxkoky4zmXsWrvejNkaG91KRBzHOUl0ZJ?= =?us-ascii?Q?UieR1XiayP0rXYqvPmsMKkbKHfSX0BLUI8XWQQdCQf1+sXU2DP4fRvAIaV6H?= =?us-ascii?Q?qNAlg6YmdYyTtSpGZVeGGOb17Ccgh6ui5mjduiriQuIIRECpSCWgbv9Cnrbj?= =?us-ascii?Q?6s2PdThT2Z1fRlCAqGtiL78se9bOP5PRlS4TNxLPNuk7ncYQfqwM+r4kPq7U?= =?us-ascii?Q?tgNyFBUHfGZxsyru5mt3UbT9eTtzWuM+Fn4sNx7LXkg76mdQLzkvS+uayPwV?= =?us-ascii?Q?DCtiK23Q9f+/P7nL6CbCJwVNLG0/19KfScSoXNvr1tCKZK+qw97W5peJB8dC?= =?us-ascii?Q?etWAvXfFgNfv9K4uqE2oUqgxaqlTarj775Kh0bQif8n6nhiswTukzhQccAhV?= =?us-ascii?Q?46mdbHSfMOuqmXtoNTf+ywpsz1QsEC8Ng9pHGnnCrmo2tjZR+M+QErZBhwjG?= =?us-ascii?Q?7RkE7ZnEJ5DafmVab+i3vn9Fm43JP5d7/VxTdeJWFdGBSzQ2UZm0wqAm90uO?= =?us-ascii?Q?/7Uxv8aZuMv08QfnalDEbPVJE8NoC85lobCEiAG3ZOsXRBRhXmxUIwgrYpaL?= =?us-ascii?Q?mf6RJDBon1GEtm6dk0m2n+a5q8GEJjmYcycWFqzSYeVEj833b235zdwBZbGn?= =?us-ascii?Q?gsnP5DJ0pRa5WjO9F2bIYLPsDup9buDorAvcX7A9YRm5RiZ1QF7AGdtF+yCf?=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5kkY4J3+Aj3RsYD4e8sG4DNSnmf1sRDH/4qOTFbeAeXUPw59vjLYM3ZOYYcYtHEuF5E9xBEeEcutcxK1KEaiFU6rrioCNa8EVmKjeqDe+pw/SIEp8Q==; 24:zB3Gfgx+tOf3029RyfRkLzZ6ySznALlPEgJW1rQCXDlyfCZgNdtzUHjhF5TWp5oTKMWSTCf3cvS6gEkSdm8+KfNeuYGxCrPkoiqASXQd8zc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 7:1rnZ8xtbxzWhrtxxtW6Jh4j65Z/5NLN9D3x5boCf1zPwCZvgb8msw/2nCASnadcSRmC/6qRdSdmkXRV7tEIg8JWclq02vDxftpwY8uRRnHK+r5IxWwbi8uL2K8FyYpKZ26HP8tCctK9TCZnCBuCwmbBcSfDy7TGyfTHMMmhHiGx6WE2lE5lsyFLvZtebCGN6VplCsrZiqJRc7li91vhSQ1YKe5q+edcL2U+3YVJkhfc/vLcfh+qmyfPWOJjh/GmvETP+IBbcgUEJsxc2eXxYzN6mEuKUyf4Ijd1k8r65nMUzgWz6RtIeTAAFGbm4rEL1BaoOEvYtqk1na0+TqKiEHA==; 20:In8WQ2fcxOAjw4l02mi0HcHo3RBZx2D2iSHShxRhfBAQF6IRWZxZCdJ5ARcI1yfiVgRN0dGVdH75/7QG0KiTBeAgrIuHJPiqUxad2xvyak40D8BLdLAuurlUql1elzLaN3ibpWhxWeFtV8aJpqe258/WOjmMHl2Tdf99iE5MXEY= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2017 23:49:05.1962 (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: BN6PR04MB0354 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Target drivers must guarantee that struct se_cmd and struct se_tmr_req exist as long as target_tmr_work() is in progress. Since the last access by the LIO core is a call to .check_stop_free() and since the Xen scsiback .check_stop_free() drops a reference to the TMF, it is already guaranteed that the struct se_cmd that corresponds to the TMF exists as long as target_tmr_work() is in progress. Hence change the second argument of transport_generic_free_cmd() from 1 into 0. Signed-off-by: Bart Van Assche Cc: Juergen Gross Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: David Disseldorp Cc: xen-devel@lists.xenproject.org Acked-by: Juergen Gross --- drivers/xen/xen-scsiback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/xen-scsiback.c b/drivers/xen/xen-scsiback.c index 4cb33a0916a8..7bc88fd43cfc 100644 --- a/drivers/xen/xen-scsiback.c +++ b/drivers/xen/xen-scsiback.c @@ -614,7 +614,7 @@ static void scsiback_device_action(struct vscsibk_pend *pending_req, SUCCESS : FAILED; scsiback_do_resp_with_sense(NULL, err, 0, pending_req); - transport_generic_free_cmd(&pending_req->se_cmd, 1); + transport_generic_free_cmd(&pending_req->se_cmd, 0); return; err: