From patchwork Wed Jan 25 23:36:42 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: 9538149 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 4C4F86042C for ; Wed, 25 Jan 2017 23:37:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4298727FB0 for ; Wed, 25 Jan 2017 23:37:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3742227FC0; Wed, 25 Jan 2017 23:37:28 +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 731BE27FB0 for ; Wed, 25 Jan 2017 23:37:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752096AbdAYXhZ (ORCPT ); Wed, 25 Jan 2017 18:37:25 -0500 Received: from mail-cys01nam02on0060.outbound.protection.outlook.com ([104.47.37.60]:62156 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752099AbdAYXhK (ORCPT ); Wed, 25 Jan 2017 18:37:10 -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=3+wXESTATaj40zbiw8oSV6JA3qTrcfYgnCBGi4+PXl0=; b=dG9/gULRJ545rSbMxm5rv68I8OkfHloeJRf5E3TgXYIAuLW/WoqfzTk2bTJfKMiYMeHcrWgLtuiAxYNfBccsRxMWHPjTMMAadYbwxyoQUt8U2nz7uklRLK0IBQpBz6hB4zPQs1q4w6OZ8BZc5InOPrXCLXeZ7kSLZDaDX+/3qkw= Received: from BN6PR02CA0064.namprd02.prod.outlook.com (10.175.94.154) by BY2PR02MB1411.namprd02.prod.outlook.com (10.162.80.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Wed, 25 Jan 2017 23:36:57 +0000 Received: from BY2FFO11FD033.protection.gbl (2a01:111:f400:7c0c::143) by BN6PR02CA0064.outlook.office365.com (2603:10b6:404:f9::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Wed, 25 Jan 2017 23:36:56 +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 BY2FFO11FD033.mail.protection.outlook.com (10.1.14.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Wed, 25 Jan 2017 23:36:56 +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 3D.C8.65426.7C339885; Wed, 25 Jan 2017 15:24:55 -0800 (PST) Received: from milsmgip11.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; Wed, 25 Jan 2017 15:36:50 -0800 X-AuditID: 0ac94369-b62949800001ff92-36-588933c712a7 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 90.45.16817.29639885; Wed, 25 Jan 2017 15:36:50 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: , Christoph Hellwig , "Andy Grover" , David Disseldorp Subject: [PATCH 30/34] target: Inline transport_put_cmd() Date: Wed, 25 Jan 2017 15:36:42 -0800 Message-ID: <20170125233646.2243-31-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170125233646.2243-1-bart.vanassche@sandisk.com> References: <20170125233646.2243-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5ke5x484Ig5uLRSz2z3rGZPH1/3QW i5WrjzJZtC59y+TA4rH7ZgObx/t9V9k8Np+u9vi8SS6AJYrLJiU1J7MstUjfLoEro7Ghlang nWDFkWc3WBoYP/N1MXJySAiYSOx+cJeti5GLQ0hgKZNE06sGZpCEkMAORomDa6Nhiroe72WB iG9klFgxRQjEZhMwkvj2fiZYXETAQOJ37wVGkEHMAh2MEvN7nrGCJIQFLCVaOxaBFbEIqEp0 vJkLtoBXwF5i+YNzzBAL5CV2tV0Eq+cEiree/Qm1zE5i/YFWJpChEgJtrBIvPl5gg2gWlDg5 8wlYEbOAhMTBFy+grlaXOLlkPtMERqFZSMpmISlbwMi0ilEsNzOnODc9tcDQVK84MS8lszhb Lzk/dxMjJLAzdzDefeJ9iFGAg1GJh1dgS0eEEGtiWXFl7iFGCQ5mJRHedXKdEUK8KYmVValF +fFFpTmpxYcYpTlYlMR53e59CRMSSE8sSc1OTS1ILYLJMnFwSjUwLuq/MZWrptLqs12u/M7F T7lWTkngbaj4+uN7xtM7rx/lXhN/VP3UhFs9lWmy4gpNjuwj2bq3g+dHlWz+nmsrrNH2unAx 1+Qtv899ezb5qUlW8OygvfEPNrI7/+0PjBUNqTvs91xBa39pX/qzJ5N3PXrlPPlKifPtQJHt bltWHF7gvO59xlrVciWW4oxEQy3mouJEABJ25CJoAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGJMWRmVeSWpSXmKPExsXCtZGTTXeSWWeEweeD7Bb7Zz1jsjj4s43R 4uv/6SwWK1cfZbJoXfqWyYHVY/fNBjaP9/uusnlMW3OeyWPz6WqPz5vkAlijuGxSUnMyy1KL 9O0SuDIaG1qZCt4JVhx5doOlgfEzXxcjJ4eEgIlE1+O9LF2MXBxCAusZJSacP8AIkmATMJL4 9n4mC4gtImAg8bv3AiNIEbNAF6PEpjOn2EESwgKWEq0di8CKWARUJTrezGUGsXkF7CXenJjA DrFBXmJX20VWEJsTKN569idYvZCAncT6A61MExi5FzAyrGIUy83MKc5NzywwNNQrTsxLySzO 1kvOz93ECAmJyB2MTyeaH2Jk4uCUamA0vxc468KnXx/MNq09Zi2/wDuXQWkKc4/L3/DfEc2W lxneq4qFH1hzcbb7v8C/tnn6ff+5Yj2q3C+Uiqm9P9ByZJ2rVNy1nbXqO/99Erb9ZdK9f9k3 wUlpWx12P7TsEJ8jLPfE/HbMnfyvYvFvhfb2tnyr0N7Pl71gufQBhxVf302T2L5887xuJZbi jERDLeai4kQApWVvkLkBAAA= MIME-Version: 1.0 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:(10009020)(6009001)(7916002)(39450400003)(39410400002)(39840400002)(39860400002)(39850400002)(2980300002)(438002)(199003)(189002)(92566002)(50466002)(1691005)(36756003)(7049001)(77096006)(5660300001)(33646002)(305945005)(575784001)(69596002)(5003940100001)(1076002)(356003)(2906002)(4326007)(86362001)(81166006)(76176999)(50986999)(68736007)(47776003)(6200100001)(8676002)(81156014)(106466001)(6666003)(48376002)(2950100002)(110136003)(50226002)(38730400001)(6862003)(54906002)(626004)(8936002)(2270400002)(97736004)(189998001)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB1411; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD033; 1:TbrcqmHH8V8zJLu+2jVerbu+ML9zPRQvn3LHEMb+QSMlYkFoFVmUe7bJaZ3J9AC3F4XFbu0+PphjR9lkf7HK3AE3s7iZVmXxraumxKXbbp/PhA1ifaSL1padxC5T7VYR0Tkh+YlD117ctC7e7fGhjlDbtIVIay3DO4V1nYoTQzP07d8KA3gMJyhkqJ1qYLkYzuApCW+pPrf5eYuXcZ4TiSQtZOS36nEKkZVG7t6JSoiN+lCLm36qeNR1cHV4dNjqt+OJP1hev58tHn3qVJx1DTUjkKFJ5raMa+YP1YfrS5e8V1zBzHsAXt3irBUFoeIzXbN/RAdCxPnhOYtTSPQW0I6omp4vznk6UHSoMAWYvXxcPQsMBUrVAq67942dAyh47fa6KCat25i+cb6qPixutatmMuvUkMEVIKYYZMiiZeZ5rGxN9/pWzyy5Xp+uBVW4aJQ8FFJAZP2x5mSdcV1SslF1GnJ/W9/rBMPYSx4AlYYNOGYk9QlJq2z6hIbUPprJ X-MS-Office365-Filtering-Correlation-Id: 49167947-dc64-4164-1845-08d4457b0cba X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB1411; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1411; 3:zaDqY5R1NMJoNQf+RXBBipdPz5IEfsDfAgze30ixP0en9fU1NUpmPQeISlGuhpfV7zNzXNuCM1L3rD5dY3Ml5Wp6AIAD2i6ruzcg+Jf6PokJEp3zEmGRcL0aWf1iMOnIvTuN+N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bKzDcSadXTsMottfPcLTAXaPXdVHSnLttWoRHnCMUDVj4zBqDRPT48OSju2xm56U3CkgFNI15pHePMFRONIa3DUATYvaegnPATXgnfxvYYLCmy86eCt10drjovkf5PE4bzGrWf9myb9DWTTV7y9/3GiZUNUKysXFKqxJkVPtiyTkZQfD8kY9tRdCeRKXcE5q1Q/A9LFmhtD/ZkkTQ4ddSvFXreqhd513WSNh+wv6p0l3DIwTAAbmg+oaez8r/xzOYQXgo3GiEPRc+csDPD//gQKtjT+XjR2oHpAVMbqLeCVddfttRY6zrRffOuFp5yfc7HRvMsUMOys6aFkjuDvSZwfBntJhBdcSW31lGZdFD3ErDiH686Ndpwp3GfrMe2axrCu4aQNOyXNbdn31bjgLnJu5qsgKvGXxveEERwKEUhTt+K0AVyEohr+aadlzPnSGozGAIfLop+m9TFW2N4x8Q9qWEbHNhYreZ3fHyzn088y X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123558021)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(6072148); SRVR:BY2PR02MB1411; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB1411; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1411; 4:49sknxx2cG7cXq2S2/YRPxeLvvtRJueJtT0r40CS/h+gi7Q6Ives+q0QGDT7ZZs+fOcVtmBwH+wAz8vYEKYcjoS+F/DnrHluDS88vxbViP04PuMYeOEOn7bWhzM9ARkuZucaTMSg+Y4jrG/bECQz2xzo2VcJ7ZdPRdfHHfPG5bTnNI23I95K0iGZFu15JIp7Nc8GcNxRs2AEgM3SIMI+CDtLNG2OdH0ic2FxVhODkTUfmJYLrB7RmRreW1muxY1Fck7NVS8C0WzSQuMIZvpVMt8MrONPHVJY8MIQjkZgs1CojYcjYXndCqR4qCr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cgiDDXwzSJC7zuSGHvMmsIATrAeMO6O8t3v0DP9qrho0CHA0sRMLeeSiqoaDa4FETnWfdYsiyUrwYmlE9+BAO1gCNXpAlrf37lAIJulR554MEJIjj+bjxmyseNIpEwWJeGNiERsw49AHZQ7kyjuDSW1GFLQ6JsLHxqx5uYREpP8z6nDCgD3iLnRNwswwRjnO2Q7eHrQSE7PRfgHfv+70vRa9K0iBs+maOym0FAWJFRqXOQ+9YWgakJU9jTZuF6jBhJu24D/N6o3mOY9ormsxE7wMYJp9gAh2x6du3/xz64bmL38V89Yb1m2/s4S1oVgHk+Pm19LP/6LHqDn2NFeIxSHqQcP5FXCHqWZyJaIsY7TxM0A0XKeFSV3fuiLey5cyTWImdaXdNIcZpCzzFMg4+Q==; 5:WSauXcn9zJKm4LDJ6r8Fp5fK/EObEcDgsttoazElRgMUJMU5ocTjt2HBZEOfVulBZsRMwAVI+02pLio0xanzKwe0syyHsj8puGNY5SLlSbqqfLRlPZvVfghH94bgTs3sATzvzRs7dI65x6B+i4C5uQ==; 24:RzQyMWtqxPlvcFqGsrItXW6f5vdCdYYalN5RCC/72LjwV+jjMB5ss11c2xpLXppa4taKApSaPjtr3cy8EJrVMxcosGvGSRxxAURDBml9nJ4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1411; 7:S7wfiV8g1Fs4WoOYph190g1BiRWUJ+lraQEqjRD50ozgI8E5gBtjNCcfXomhNG37McU71+0NEuCLy+PxRIH1MSIgo5Ez/zxy96hY/sX64UUupi4w9jTLqv3y5EiASdCP17yTQf7zbk7Zpe78y18sRXovTo+d26y159LdR/PTkJSlxQIN5D0iMbLgHTpUgwaJKheDv4ePbJwT1re4eyRpkd3ILA/I2hG+6UehNqjOFF908crsdVb7so5h5ToIPDObAJlPAuJ9Q6dfj+iCw1ruizUWlO/+sgyYqjv5wqHzbDIF0o7EMLq6PrcWfpT6IzP/jI/95eYB+lo0opg//7/VngoZLEGLVGN2t6t03tU6kSpEJoOWRQr69gihio5n78kRU/i9/reW3L2uzTm6GxY50Fju0xby/XFH7XJ4GJBl3S/L+pyVrFH3MgSar9x00uhTu8MV+bYVE22XagyWocoPdA== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2017 23:36:56.2431 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB1411 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 The transport_put_cmd() function consists of two lines of code. Due to previous patches only two callers are left. Hence inline this function. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Andy Grover Cc: David Disseldorp Reviewed-by: Hannes Reinecke --- drivers/target/target_core_transport.c | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 0fb46c9ce449..1dde88b0c2c8 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) @@ -689,7 +688,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); } } @@ -2250,22 +2249,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; @@ -2513,7 +2496,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);