Message ID | 20170523234854.21452-25-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | New, archived |
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 357AB60380 for <patchwork-target-devel@patchwork.kernel.org>; Tue, 23 May 2017 23:49:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27D982885F for <patchwork-target-devel@patchwork.kernel.org>; Tue, 23 May 2017 23:49:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C89328861; Tue, 23 May 2017 23:49:38 +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 9BE5C2885B for <patchwork-target-devel@patchwork.kernel.org>; Tue, 23 May 2017 23:49:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968848AbdEWXtd (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Tue, 23 May 2017 19:49:33 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:11780 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765541AbdEWXtM (ORCPT <rfc822;target-devel@vger.kernel.org>); Tue, 23 May 2017 19:49:12 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="21096401" Received: from mail-bn3nam01lp0183.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.183]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2017 07:49:07 +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=/Dbuhdc4f98o7irusdw99LyB55y8+TTWp96O+E7j2+0=; b=uXpaUEUTpKBxrM5NJjKCdIZ0WAkM0S74ZLJM5x2uqsC//DTVVc2hljSPD7wIpFB0WYnmVBjLv+GMvEuzU7o/W1Qu9hLeAYetdZwA45nDCVkcA+8cCYk1pLeWevXAvidTNHsmTrDVp7sCrmhUX3EcoHUR/QWqLN6hsxbpDbsXj+E= Received: from DM2PR04CA061.namprd04.prod.outlook.com (10.141.154.179) 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; Tue, 23 May 2017 23:49:06 +0000 Received: from CO1NAM04FT053.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::203) by DM2PR04CA061.outlook.office365.com (2a01:111:e400:243c::51) 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; Tue, 23 May 2017 23:49:06 +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 CO1NAM04FT053.mail.protection.outlook.com (10.152.91.79) 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 BF.64.19026.F6AC4295; Tue, 23 May 2017 16:49:04 -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-0f-5924ca6fd9dd Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id E1.03.18148.A6AC4295; Tue, 23 May 2017 16:48:58 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Nicholas Bellinger <nab@linux-iscsi.org> CC: <target-devel@vger.kernel.org>, Bart Van Assche <bart.vanassche@sandisk.com>, Hannes Reinecke <hare@suse.com>, "Christoph Hellwig" <hch@lst.de>, Andy Grover <agrover@redhat.com>, David Disseldorp <ddiss@suse.de> Subject: [PATCH 24/33] target/iscsi: Remove dead code from iscsit_process_scsi_cmd() Date: Tue, 23 May 2017 16:48:45 -0700 Message-ID: <20170523234854.21452-25-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+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5kW7BKZVIgzvfuCz2z3rGZPH1/3QW iwVv9rJZrFx9lMmibfUZRovWpW+ZHNg87m8/wuSx+2YDm8f7fVfZPNZvucrisfl0tcfnTXIB bFFcNimpOZllqUX6dglcGbdavrAWzOaquPljEWsD4ymOLkYODgkBE4mpu/i7GLk4hASWMkms mDudBcLZwSj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G6581nXr3+L4VsH7k3N27OPLv2 2IKW4KO97cXcu063bmI9dyT94meht3v6xcNvnYqb88j75gk2FamPa497bjn4N/PJg7lqdh2P nrpflO02O6x83X5H0ssw8fVKLMUZiYZazEXFiQBpkMlqzAEAAA== 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:(10019020)(6009001)(39410400002)(39400400002)(39850400002)(39860400002)(39450400003)(39840400002)(2980300002)(438002)(189002)(199003)(9170700003)(50986999)(48376002)(36756003)(33646002)(47776003)(1076002)(76176999)(38730400002)(106466001)(2906002)(5003940100001)(50466002)(189998001)(4326008)(54906002)(110136004)(77096006)(86362001)(6916009)(305945005)(6666003)(2950100002)(356003)(72206003)(8936002)(478600001)(5660300001)(81166006)(8676002)(50226002)(53936002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0508; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT053; 1:ndgpqEyMo8sG7yh24H3pGKa4gO4EE3FZR2LiZfMeGkIatVWcMw20bFp5/tqc3Ho5XjMXi3YuVnyxCxOFJMZWw6Sj8UIhylJ1aVJseGuJROQVwUPb/UydzJxZf0iWp2HqYYdXi0Eb8OTW7DjHnAh5MZt4POVP8sgUzQEpsp2K302i7021bbPtmW5vpLipRTzZJyU1FBG5oUdnyApHy1EdSlGyTaMYESgiDNc62xwrZBvO0aVjpz5N4PMOGmi0NVtdMXoE3YIZGZAp0vS9zJy/JdSNR4telFVj0xX9MnvmWD0cnXZ9RQjQWT4ohYytWl/rFU5Jnze/rDYLXBhWAp/mGvibtjq0dJaoOoW///fIMh0TOMPyiUrDNr4BVwZzhXSy2IOL/lDqQsfMjtnsOrl5M/tzbeo6f3VSFco+pIHeUbaeMeHW9nwZyH9B2P2dWnqTWfPVcHQmY/ZEiX3H71U7NA5C4cWzFv32etMiMJxMrd9OzW8GfnSwNU3Ike8Gi7c8C/ReVd5nNDtmpvPx+pfJnaOhnvYOZqWafRiP3XLzMm0= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0508: X-MS-Office365-Filtering-Correlation-Id: fea0453e-b042-43e0-3d44-08d4a2364c16 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0508; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 3:CWPk0dpSCFRQzb2IzlJ6Hbo31sj3k8Fool5+cPJPuKXl7E8ygCpJECDxozZrH0XrJwpIGnVNWzqP92bcTb6Nxu2N+QpOOBxClXxm2Plok/+F7x4pehC8yPHXtWhIwbZzL/Eg0paOxaZUzU6ujihXOgKnn25JnZhctAIK3eRBCXQqMtTTXnzhmVizOIjv3kc2XntHNzVbmtr93ZPbwsxVowPvm6Ftn0cmCcQopN+cdEcz2ORSqb+ktymzrf+V7RKowhXZBd3qB3kqzCe0C8ZOOrIeNmMweh1BzNyI0wmiS/5eXMfe35tw6iEMrp/Y3abnZ2isSZkDWVBEfyw68TUxfVq1hgbK+Ow4M2EO5R8lac1ldb/ApkoAoc1Ku93Mg601JO2xG3x0fGZ2k5OhmDDoJYgscHRwRt59VAml0MAdIzyUeTKt4YvS2Uz4IyMOQtm7F8Dhak+7EECEOUapeoFFwuhjMJlBTH3yISUAi1xvWUfOz15ygYKIXszuPXLckSnl X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 25:w1GFQSpM4Jp+KCPbR5ynhCu7XY2tIx4f84So3IpaX4u5Kl74N/ef03qx1g34PeORjwpTrVZinjw79x5hlrIWoSKmjyk71HUNXLImws38nIhqsamkNJWXZB9Av+Ux8zF/ZyDLMC7vQyF0tGzS+iIHP6rlkMfOKmR8rM13/75zWlhWXH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Zchjpd2bXSGElVT4AT0CIYSJzdZ3MTH5pIf9tvOujpoTRawRq6Xr4+3QAtHbZnCjoxJiiKcHxy4jCz/SM5KZD10i7kzG1p X-Microsoft-Antispam-PRVS: <DM5PR04MB05084A7EBA0AC6900712E01D81F90@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)(5005006)(13016025)(13018025)(8121501046)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123558100)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148); SRVR:DM5PR04MB0508; BCL:0; PCL:0; RULEID:; SRVR:DM5PR04MB0508; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 4:wwsa0L20KAjeruAIuCG5RVjxjLXIBDgGhh7/WbYReDSydA2vPns18cMYxyugMREYIdewL/+9twe+OeW1s+5tAEUeS8vY98oYy2I130rh9tFRtIV2YycxvQ1KBsCv1VQag3TMEojgmLxxjfIQzm4WInWnfh153p1Jgi/3itoLwwuZzR1Cox3B1JPbS9fpGCtfPlkD+sJKCFye7vYNwd0ZEbrxVbKoqVgoGEanddOVWOB19n/4TaW4PA3S+5mKqEtU0yoLdoQlS/DIaJUyt+aFzvyiiy72EEP6Aqj5M6/K2F5ggIp5BPbRcFL62n0xsUu7tj/KaH2J05A72swZGddJgHR/UKUigOAmg9OBvewRNhtsst248vbXMKXe04Jv9QgJf5pPpVhoRt9R4z0CFdDHGnsRUnjU7rveZ+Vjag/5cMJFZGNodztdW16gkyrQ66QzEOcEe53gAUjgKSqZYeP7HnnE6jleKYhDW8JawlcPDwsg/2PLCQwOn1orBm3rHMKovb5y/7aTz5shZ+YvYXqM8dLE7YcpfqbdG7GhcCqYvqrq3pi9U40uhN89LIkSkobD3dBXAxY8GRqbXjfnMS/HD6hqvzurKrxsUQfXHC3P04GfLhTXtGUe7tFDH7WMmTnkx6imr4SP/H5Ccdtq0DcpjG4p3l+sgq5MM/W/3HB3dYkXTvku+T+sHpAPuIj4knHEkcEj61wdTsJx0OwFxUm9CsedUAYTOAAXUWVYxZeEMRMxVlvWTyRuCDhdM12+eIgcEIcUxK/LHryGx2aDtGJBp7801hdAyILgY20g/fdk5uP+JOKnqIz9UubbB13L9cuylRm4+b4Y/oouEqulucxebIJYuIL6INXZfPSq4wBJvw5GkBR0LafM1B14rl32V/jR X-Forefront-PRVS: 0316567485 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0508; 23:CYqqBQg8vjCCy24K1CP00hIymENugZbtrphX92q7L?= =?us-ascii?Q?HfdmQReZ0OzEAU7xaaexGpSJoz5C1OVyQ0ytIwnUjR/+UBpuvfBUreVJHQsB?= =?us-ascii?Q?LgoSFwzSCJSIOgzAHyI1fPXn5+bKwX78ojw2Vh243b15x2WQDMb+5sHdlnSz?= =?us-ascii?Q?viRPw0ieX46Uq7FgVYJbWS/9NpWT1N2WjEVaiU0Ylz8d+Or0AwFqJXNNiKeg?= =?us-ascii?Q?gkRKfyfZyA4KygqRz8WnQ0JYqKkCnVVRSifrptdRijEO+X7Fj257eqJUhHRq?= =?us-ascii?Q?iFtv6CIZKNmxseJx0/Rd0ArB/8YkelP/9EEznnU5SBw0BlnalGNW/7R66NIB?= =?us-ascii?Q?Sty+S69b+VXKNhoqdzgvDZ9IknjL9XQOwOoB3puI3cEPn77krZ1p6ugODKHp?= =?us-ascii?Q?6z0n7RrkFc5LkHEH0XO6LCZRucro+Sck9GzUmbSEXUHgoOdKTVcnV/4774NN?= =?us-ascii?Q?+F/Vre8HUefEnP9akh598oMOteHa/ohriv3ORASY/3auoQ8UsD6r/+D9H3M3?= =?us-ascii?Q?32LyX3d5gWPmM0YVnzYdXfsnr6WvW7nOtHsddWCZe9nBVslo/M8jUTtNWTUJ?= =?us-ascii?Q?PzBy9kvfK8Jvo6CqgR5T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urAqhKxK3X7PsHXTSIDN5dXhZ5rvpBFtBSD7Hu9uTfVuqT+1tsxmF7Qg/XWkYL9W3zrQCOIqVm4GZeHUJ8n10dMVLCCPzds8JgOYM7hVxN6Le0G39Zb8AgBdd9LKWmsj9FLgcgsjMvflHT4h4V/4=; 5:7zoFrpNFHpa/eHr2rfg+1AwS9ZUnz1KjlSN5W832ygDFu45QrOyRG8Ai5HDa+6IfBYfaKsIyMsi5izf9PZ19W9+HFz51JjCWooUHF/LQEl8rZ8GRmjtg8DubakB1Pg7N8yT3GmYHKet7cuZfqQbK4A==; 24:mKOt+PFOLMjjJG93thA8+mznW5rMGFjEP2Cv6nTwpd46M5jxHZaNfAY20KjUHn/+rp5hvu3aDW3fL4F5fVG6c/kr/oP7aZBc5iYfy4YaXFM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 7:4NLudARevR/9+NEbJpF+rnbbhVGSHciclQ28xHGXTi7aFSi9EITEwupJQ510oPyc6EoHnMcyd090LIAa5zTRDR5IkzrSN5jTOtS38IH4ZuYDMzqgPK+alyPf8C5ewYI5u979kMnk4bxC7/bfCVlR4hYf8xf7EhNqhePlh3DmAmtBkMymBT0O1I7KbYCVQ+A1sw9GNNJabGC7TpCLXOnsJIkYI4YbLIq5LgDqZjo0zBKP2hWNr/PizeYt600DfOUNYCkOaSrbtXdUOB0Yr0Kfa3A1fEnVWymkv+kUQYsClORrIXU5lxW9Iv2y/m8r8vcuurhIQqzxDzvvpc4OAptTow==; 20:4N6k9mDL8ifNM+etx75v4c9JPojkwKpFDbu7xjqlbqfBlQtfBrDGkGZoY6hltT2n2EV98w28vdOVmreTkrMQy9RBjn3Hn6L1K4A9C6cb/rgBlpmO1SnVbPzKc4mkSOnmse400GD376AFqJpC2A7qaxXskm9c6rirAYaS1nNsjuY= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2017 23:49:05.0635 (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: DM5PR04MB0508 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/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index 083e6228c99d..86acf81c1cf9 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c @@ -1249,12 +1249,8 @@ int iscsit_process_scsi_cmd(struct iscsi_conn *conn, struct iscsi_cmd *cmd, * execution. These exceptions are processed in CmdSN order using * iscsit_check_received_cmdsn() in iscsit_get_immediate_data() below. */ - if (cmd->sense_reason) { - if (cmd->reject_reason) - return 0; - + if (cmd->sense_reason) return 1; - } /* * Call directly into transport_generic_new_cmd() to perform * the backend memory allocation.
If an iSCSI command is rejected before iscsit_process_scsi_cmd() is called, .reject_reason is set but iscsit_process_scsi_cmd() is not called. This means that the "if (cmd->reject_reason) ..." code in this function can be removed without changing the behavior of this function. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Hannes Reinecke <hare@suse.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Andy Grover <agrover@redhat.com> Cc: David Disseldorp <ddiss@suse.de> --- drivers/target/iscsi/iscsi_target.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)