From patchwork Wed Feb 15 00:26:08 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: 9573101 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 13016600F6 for ; Wed, 15 Feb 2017 00:26:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 070E5283F4 for ; Wed, 15 Feb 2017 00:26:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F00A52842E; Wed, 15 Feb 2017 00:26:55 +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,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 7AAFB283F4 for ; Wed, 15 Feb 2017 00:26:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750902AbdBOA0y (ORCPT ); Tue, 14 Feb 2017 19:26:54 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:17288 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750931AbdBOA0w (ORCPT ); Tue, 14 Feb 2017 19:26:52 -0500 X-IronPort-AV: E=Sophos;i="5.33,348,1477929600"; d="scan'208";a="86867908" Received: from unknown (HELO milsmgep15.sandisk.com) ([63.163.107.21]) by ob1.hgst.iphmx.com with ESMTP; 15 Feb 2017 08:26:22 +0800 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 FD.E4.57638.D20A3A85; Tue, 14 Feb 2017 16:26:22 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 14 Feb 2017 16:26:16 -0800 X-AuditID: 0ac94369-26dee9800001e126-7b-58a3a02d07f0 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 23.8D.11415.720A3A85; Tue, 14 Feb 2017 16:26:15 -0800 (PST) From: Bart Van Assche To: "Nicholas A . Bellinger" CC: , Bart Van Assche , Christoph Hellwig , Andy Grover , David Disseldorp Subject: [PATCH v6 29/33] target: Remove unused arguments from __target_check_io_state() Date: Tue, 14 Feb 2017 16:26:08 -0800 Message-ID: <20170215002612.14566-30-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170215002612.14566-1-bart.vanassche@sandisk.com> References: <20170215002612.14566-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRmVeSWpSXmKPExsXCddJ5ka7egsURBt0fOSz2z3rGZPH1/3QW i5WrjzJZtK0+w2jRuvQtkwOrx/3tR5g8dt9sYPN4v+8qm8fm09UenzfJBbBGcdmkpOZklqUW 6dslcGX8vt3DWHCfr2L206WsDYyzeLoYOTkkBEwkrm1vZe5i5OIQEljKJLGkqYsVwtnBKNF6 7jcbTNXL64egEhsZJb4te8UMkmATMJL49n4mC4gtAmSv7lnGBFLEDNI9ceVudpCEsECExITr 08AmsQioSjSduQlm8wo4SJw7vJoZYoO8xK62i6wgNidQfMaOk0BDOYC22Us8OmMNUTKJVeLQ alWIVkGJkzOfgO1lFpCQOPjiBdgYIQF1iZNL5jNNYBSahaRsFpKyBYxMqxjFcjNzinPTUwsM TfWKE/NSMouz9ZLzczcxQoI9cwfj3SfehxgFOBiVeHhPyC6OEGJNLCuuzD3EKMHBrCTCy1YP FOJNSaysSi3Kjy8qzUktPsQozcGiJM57TmZqhJBAemJJanZqakFqEUyWiYNTqoExVKn8xYcL y060HDo0r96B7dkJRu9/8ZrG3e//sa081GKUYXnfIORr3/11V9aEzwsSlbgiOEOX6VhikvLK /3GGh28F5etnTP00Y7Hbzpcxeem+250U6u9vbEmQreJc4Xvd01HurPaiRwJcrSLFkWcjp4X+ fLXu1O1Vf00qvI1aDzy1DlNM8qpVYinOSDTUYi4qTgQA24SFJHICAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPJMWRmVeSWpSXmKPExsXCtZGTTVd9weIIg4nfjCz2z3rGZHHwZxuj xdf/01ksVq4+ymTRtvoMo0Xr0rdMDmwe97cfYfLYfbOBzeP9vqtsHtPWnGfy2Hy62uPzJrkA tigum5TUnMyy1CJ9uwSujN+3exgL7vNVzH66lLWBcRZPFyMnh4SAicTL64dYuxi5OIQE1jNK LPnRwAySYBMwkvj2fiYLiC0CZK/uWcYEUsQssItRYvKEE2AJYYEIiQnXp7GB2CwCqhJNZ26C 2bwCDhI399xnh9ggL7Gr7SIriM0JFJ+x4yRQLwfQNnuJR2esJzByL2BkWMUolpuZU5ybnllg aKhXnJiXklmcrZecn7uJERIkkTsYn040P8TIxMEp1cBoduvNzHZNRoWDGc/F/ht8UbxlpJt/ qMPwTsxivwSLjvxJE3PYrku9+SEooTJ/n1hfrJPbCzUe1Zmp0yyfia3xUTz2aZtGzN7QFRte ZNZvTuhlk/CxFvOTMdC0qBL3StjXortn0v+XK6p6bkhMXJyzyOTSb8d1uwJ/pRhsi7f789l5 qoRWXKkSS3FGoqEWc1FxIgACVpjWwgEAAA== MIME-Version: 1.0 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 Remove the arguments that are no longer needed due to the previous patch. Signed-off-by: Bart Van Assche Reviewed-by: Hannes Reinecke Cc: Christoph Hellwig Cc: Andy Grover Cc: David Disseldorp --- drivers/target/target_core_tmr.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c index 299874a964e3..351d548de9e0 100644 --- a/drivers/target/target_core_tmr.c +++ b/drivers/target/target_core_tmr.c @@ -90,8 +90,7 @@ static int target_check_cdb_and_preempt(struct list_head *list, return 1; } -static bool __target_check_io_state(struct se_cmd *se_cmd, u32 skip_flags, - struct se_session *tmr_sess, int tas) +static bool __target_check_io_state(struct se_cmd *se_cmd, u32 skip_flags) { struct se_session *sess = se_cmd->se_sess; @@ -153,8 +152,7 @@ void core_tmr_abort_task( printk("ABORT_TASK: Found referenced %s task_tag: %llu\n", se_cmd->se_tfo->get_fabric_name(), ref_tag); - if (!__target_check_io_state(se_cmd, CMD_T_COMPLETE, se_sess, - 0)) + if (!__target_check_io_state(se_cmd, CMD_T_COMPLETE)) continue; se_cmd->send_abort_response = false; @@ -221,7 +219,7 @@ static void core_tmr_drain_tmr_list( continue; spin_lock(&sess->sess_cmd_lock); - rc = __target_check_io_state(cmd, 0, sess, 0); + rc = __target_check_io_state(cmd, 0); spin_unlock(&sess->sess_cmd_lock); if (!rc) { @@ -323,7 +321,7 @@ static void core_tmr_drain_state_list( continue; spin_lock(&sess->sess_cmd_lock); - rc = __target_check_io_state(cmd, 0, tmr_sess, tas); + rc = __target_check_io_state(cmd, 0); spin_unlock(&sess->sess_cmd_lock); if (!rc) continue;