Message ID | 20170202005853.23456-33-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <target-devel-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 609C360236 for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C1E02844A for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40F182845B; Thu, 2 Feb 2017 00:59:30 +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 BF78F2844A for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751337AbdBBA73 (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Wed, 1 Feb 2017 19:59:29 -0500 Received: from mail-bl2nam02on0079.outbound.protection.outlook.com ([104.47.38.79]:60704 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751402AbdBBA7J (ORCPT <rfc822;target-devel@vger.kernel.org>); Wed, 1 Feb 2017 19:59:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=us+g1DUc1aaANkDJp+jJsw93EXfAaBe3XelSCD1YkWs=; b=Ox7h54TrKDNMz4cCR9mWuBvRo6KCQ+B105Rabj7zOEhwQxT4DemcToKp7qHNwu+TTj13Mgu1u550PpaD0SU3RXU3dc/7fIYhl/cZw61GOJW7WtBqFpgtMPlCbG2cf3VDAsC5gm2i8CkxrfZ2YfwNG8n3CZHX8/SyPOQlwWTW3bE= Received: from BN6PR02CA0052.namprd02.prod.outlook.com (10.175.94.142) by SN1PR02MB1423.namprd02.prod.outlook.com (10.162.0.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Thu, 2 Feb 2017 00:59:05 +0000 Received: from BL2FFO11FD022.protection.gbl (2a01:111:f400:7c09::162) by BN6PR02CA0052.outlook.office365.com (2603:10b6:404:f9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Thu, 2 Feb 2017 00:59:04 +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 BL2FFO11FD022.mail.protection.outlook.com (10.173.161.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Thu, 2 Feb 2017 00:59:04 +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 FC.BC.01420.F0282985; Wed, 1 Feb 2017 16:49:19 -0800 (PST) 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; Wed, 1 Feb 2017 16:58:57 -0800 X-AuditID: 0ac94371-7ee9b9800001058c-a9-5892820feffd Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id B4.73.16817.15482985; Wed, 1 Feb 2017 16:58:57 -0800 (PST) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Bart Van Assche <bart.vanassche@sandisk.com> CC: <target-devel@vger.kernel.org>, Christoph Hellwig <hch@lst.de>, "Andy Grover" <agrover@redhat.com>, David Disseldorp <ddiss@suse.de> Subject: [PATCH v2 32/36] target: Inline transport_put_cmd() Date: Wed, 1 Feb 2017 16:58:49 -0800 Message-ID: <20170202005853.23456-33-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170202005853.23456-1-bart.vanassche@sandisk.com> References: <20170202005853.23456-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsXCddJ5kS5/06QIgwsHFCz2z3rGZPH1/3QW i5WrjzJZtC59y+TA4rH7ZgObx/t9V9k8Np+u9vi8SS6AJYrLJiU1J7MstUjfLoEr4/Iu74I5 QhWvV3WyNjDO4e9i5OCQEDCROPRerYuRi0NIYCmTxMSfx5i6GDmBnK2MEh1rgmFqlv30gKjZ zCjxY9tbNpAaNgEjiW/vZ7KA2CICBhK/ey8wghQxC3QwSszvecYKkhAWsJGYMe8jI4jNIqAi MX/aMzCbV8BB4s+3Q+wgtoSAvMSutotg9ZxA8cXHIYYKCdhLfPtzlAVkqIRAG6vEtC2boJoF JU7OfAJWxCwgIXHwxQtmiAZ1iZNL5jNNYBSahaRsFpKyBYxMqxjFcjNzinPTUwsMTfSKE/NS Mouz9ZLzczcxQoK6cAfj69vehxgFOBiVeHgFRCZFCLEmlhVX5h5ilOBgVhLh9W0ECvGmJFZW pRblxxeV5qQWH2KU5mBREudtfd0fISSQnliSmp2aWpBaBJNl4uCUamA0+16gtWGWkbb8nCOX W+dr1xwvfVfy2mRCyXKrJXFbH8d8id2z/fzMjDKOZdPPPdhlIpUgXDCtQ//RN5GnshM3r7n5 4fccKY3bhrP+fAl0+/pI5J/ph+In3m86H+kyW05q6lzoYnMm8kD3W7X12xYpuCRGCK5sW8N1 5d6Wgu85n8R/XG3w9Z6+UomlOCPRUIu5qDgRAKO7glVmAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJMWRmVeSWpSXmKPExsXCtZEjRTewZVKEwc7pqhb7Zz1jsjj4s43R 4uv/6SwWK1cfZbJoXfqWyYHVY/fNBjaP9/uusnlMW3OeyWPz6WqPz5vkAlijuGxSUnMyy1KL 9O0SuDIu7/IumCNU8XpVJ2sD4xz+LkYODgkBE4llPz26GLk4hAQ2MkrM/vabtYuRk4NNwEji 2/uZLCC2iICBxO/eC4wgRcwCXYwSm86cYgdJCAvYSMyY95ERxGYRUJU4+vk7mM0r4CBx+94G ZhBbQkBeYlfbRbChnEDxxcchhgoJ2Et8+3OUZQIj9wJGhlWMYrmZOcW56ZkFhoZ6xYl5KZnF 2XrJ+bmbGMHhwBm5g/HpRPNDjEwcnFINjBnFvEdldlQc/ne24kS2v3LUvHOOK0S/hP/ebDp5 YbMx15+0hVvUOYwrhf9+j1FLyH8zXazZXfbWV5a/5Wr7hN/2ipS0l+tPN/ELV5IJE7GX2Jlb uXonm40/wzPdXf11RTP+V9gKnv7erWYwv9HgnPZXjUs//PpfMz4rWKDzdNLsEm73PC9mJZbi jERDLeai4kQAjrTneLcBAAA= 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.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39860400002)(39840400002)(39450400003)(39850400002)(39410400002)(2980300002)(438002)(199003)(189002)(6862003)(50986999)(305945005)(110136003)(76176999)(2270400002)(2950100002)(4326007)(356003)(53936002)(6666003)(5660300001)(68736007)(69596002)(1691005)(626004)(54906002)(36756003)(106466001)(5003940100001)(38730400001)(50466002)(86362001)(33646002)(8936002)(48376002)(92566002)(77096006)(8676002)(1076002)(575784001)(189998001)(7049001)(81166006)(81156014)(2906002)(50226002)(97736004)(47776003)(6200100001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR02MB1423; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD022; 1:Gv796/6KzjXtG4mlDt3uIFN2PXG00XkLAhzHlpzf34iqaA9+AASstQplXlxwTHGlphcKC1tRuKfqOvOOLcmVMhQgOhsQAplVxZ3VvMZaN9qF2Z7xeeme7i8jfaSYGafDV/HEc835gBUdqXbXDfEoIqUvm6Mfr0TZ9Xe8yNcUjrBiPgz9cKk/298tC5QMkyIpmKwc2nIue6QJFyrvAwSTVC3vVEPcnN6kfR1XqPY2YqdiYjz6zsDlys740yXpfxcQSzBk0slaTpuSwPPNaPI64cuvBevtwEl0xNA6CPlrDgp35w15bWqIWOHr+A+rirTCxNweGcxsSoPKq881pPrfDlK5yxMeDQhUIN4gqt1WeMBZJHP0BmNk8N38pgD0xo8H1F4WoASX53LDyN1xJZGUrwdvu5xAKtw+6WIqyrhGG7Xy5VwLQYL4NrhSnIuTUZJNJgrKPjCDDlfswtQh2HBclr8VvI89EFEzm8hWGPEa/Jord1Jw8vUsEXUFajcODaew X-MS-Office365-Filtering-Correlation-Id: 8f51b88e-3b82-401a-edc1-08d44b06af18 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR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F/+cxyMfYh2qOmRQoJIp5ys6vphbhdUvsbS4T8ptIIBtx0rSD8iHCBSzpvxaCpg57JIzFb+RvG95IGBJjHKl68jeO8Cem6nghqLBrg01rjiCypcHJNIZrvHx3qurrmznHllc+eJGBjKV05Uf77RGS8ComIGkYnphPlBGMPshe+7yQd7LdyMmKIWoJ7I=; 20:mJnCRvfUVET7npOOWJt2xiw4dfGKf1pMqtES12DbqFxujNqN0tNOslVIlJckjZ9sxxY0QGVfLxUorFG5rbS0OsbJBkvAUC0jrVwbMgS+u3GhnOnnjVfB3rCO4HF8cfDtb3DEVIwxG04SDlumpG9MVhyGqLEuc8Bn+WWwpj+4PZTBWIH56/iv+xhHg6T/WrfeXSTYepMttj4b49CG4AgBocFQI5uG76w+ubGqPGomxNK4Yi5OX6rXGRKpW5zZZ9GLerl+7rVIQ/UrZBrwBUANp6pUJqt1yh8k1ew5hqWHJdNxLCACpFC4rxja3jaUb5E9EJd5UqcpLrJuGidv4gd6BUk9PofuOFYQXkX0wY+8yZ6BFSE+p6eaOKOySWPxMVDJT+1gFcqwiuQIBqFeZ3MHw+TCHIV081SyVF/KwDG08Lw2oSIy/F3tKUxSYlbso3cAcoBZcZF4rGCyi/34LsijY2POnJuxUDUKu/GM7Nk8AK99Ys+esITXDPOShjT5ea2p X-Microsoft-Antispam-PRVS: <SN1PR02MB142365CF2DFD09FE85460776814C0@SN1PR02MB1423.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(5005006)(8121501046)(13016025)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123558025)(20161123555025)(20161123564025)(6072148); SRVR:SN1PR02MB1423; BCL:0; PCL:0; RULEID:; SRVR:SN1PR02MB1423; X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1423; 4:qjvnSb6Ok8cXTX03EMUpfJk7uPrkQuNwcurC35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EvBrSiCdVCwyc61l7dIldv5T1tfqaX9T6xOcRD?= =?us-ascii?Q?UzV7nMvjpIhgnspq2hhoL2KjPo7b3nGo6J4h7CJCzDvBAJakL9u1iya+kLZN?= =?us-ascii?Q?zeYi0qJV1u/h87TtNI=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1423; 6:wbwHH+Rp5ARQ0+0pbU5vaZRHkPy6gb95dgz6/rW19600no0L6W+PCrS+PsdX/5rUII7Ly1UoUsk9JG7lZavGEBQtWk576+DzboaFXy/Ql4YLu/iap5Vz1OJ2lYnySlNFQWb1DqwBVyXH0BPSjACImA3eXFx0azAVT/UTf3yFGRFIYHTSuvfqgMACoI33SjNqxJQJRSRxD+bsjyqcpedPfWmq+gu3Kst6AX3SZGGNwXIBxogdEyqHkV5O2TZojsybmioA0iMGpnISjgkUOOnVyw0cJZCKsYAifOqgt5si9VKBbZ/ADsLE6wHlBoU2Zb3UxydNvUJGFFE4pcRrzx2PjodpvAq0zhJPgFkqiyqRZLScy4sA6qgFzoQQor8h1+nsTXcP9VS6e3DScJPmcsR/25PbNtg0hyPhgfiHGD6zg/hOFRjSrOfc1L+ZF6OTkuee; 5:ADwUWrZhn5pPRtw1UHENy6DQex3gUFJKohOrBcXm+RaGpW8bVYHrSOmZKOL++pNl3kLp6Xi3QUM3cRjNui+bmdIbo6jKCZLKEKDzahGIoOJQJN5nKxcehT1Oj4IxUlN9V4u/sTrj4kwkIyOpGDJlitL3WmHTO8lh9HjPV8/QSNk=; 24:S++0iQ7vNHygMUMVeRaLtZVfEUnmbfv5eoiTN+guQZAgl50VCm9SabUdiMyjwwxukreusJId4f40+7eeJlcMKZ77wuuPrDnDOts8N5kiy+A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1423; 7:Yn/urPpmRlgYN6LCGEandUUFi02m6ZTqd84NZnNax+lC40YzFYfa9m2gHOtUD5lPoQwhGDGdgcwQ3MsbwGsv8L8KgjQ10fV+roDsOz9KmOgytaemjUcWhjVBnp8rpHUSSB+3tC3f2OgUwe7SEgEd6CbXptGpn944KlLAVoxp7ffGcIZ4S7EBHjXtODsmCpIQT299hObMTT/3K+jQP8T4IS5CbUpEyK6YbzS8RRK+Wz5fmL7J04AJFWbloklNK9iyEApxWNEyV8BAmtgLaRkY/cLV68/U66vZXT245C2T5iFbs/lejiOdkqxPNzovIK4Hg9Pe5AR9lGOFE6XHlpVG9AVIM1OsI3ebHoPt6PRHsKG84Ach6OOop5QTKDO1TQWdG9hla03Ku03VMq9N9VNux9+vLNE3uQVreJppPpDAwdfrh6PoEmRGu69W4sRF7iQ3aGv8WCUNwfbbqKDZdY1bwwR/Qb8J0rs8r9prvcDU63Oia/y09eHA3gKK4T+Di0GHwO/L7qbkvvYYt+kfQPvVSNMLTdJL/VGewLqnF1xVy4THQ25LizbgISKmVyzoGutx X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2017 00:59:04.1092 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR02MB1423 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: <target-devel.vger.kernel.org> X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 185f0e59043d..b10c8dc995fb 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -66,7 +66,6 @@ struct kmem_cache *t10_alua_lba_map_mem_cache; static void transport_complete_task_attr(struct se_cmd *cmd); static void transport_handle_queue_full(struct se_cmd *cmd, struct se_device *dev); -static int transport_put_cmd(struct se_cmd *cmd); static void target_complete_ok_work(struct work_struct *work); int init_se_kmem_caches(void) @@ -703,7 +702,7 @@ static void transport_handle_abort(struct se_cmd *cmd) * commands" in SAM. */ if (transport_cmd_check_stop_to_fabric(cmd) == 0 && ack_kref) - transport_put_cmd(cmd); + target_put_sess_cmd(cmd); } } @@ -2264,22 +2263,6 @@ static inline void transport_free_pages(struct se_cmd *cmd) cmd->t_bidi_data_nents = 0; } -/** - * transport_put_cmd - release a reference to a command - * @cmd: command to release - * - * This routine releases our reference to the command and frees it if possible. - */ -static int transport_put_cmd(struct se_cmd *cmd) -{ - BUG_ON(!cmd->se_tfo); - /* - * If this cmd has been setup with target_get_sess_cmd(), drop - * the kref and call ->release_cmd() in kref callback. - */ - return target_put_sess_cmd(cmd); -} - void *transport_kmap_data_sg(struct se_cmd *cmd) { struct scatterlist *sg = cmd->t_data_sg; @@ -2527,7 +2510,8 @@ int transport_generic_free_cmd(struct se_cmd *cmd, int wait_for_tasks) if (cmd->se_lun) transport_lun_remove_cmd(cmd); } - return transport_put_cmd(cmd); + BUG_ON(!cmd->se_tfo); + return target_put_sess_cmd(cmd); } EXPORT_SYMBOL(transport_generic_free_cmd);