From patchwork Wed Feb 8 22:25:00 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: 9563653 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 55966602B4 for ; Wed, 8 Feb 2017 22:28:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29B01284F2 for ; Wed, 8 Feb 2017 22:28:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E1EA2852B; Wed, 8 Feb 2017 22:28:07 +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 BF5E628530 for ; Wed, 8 Feb 2017 22:28:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752082AbdBHW2F (ORCPT ); Wed, 8 Feb 2017 17:28:05 -0500 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:63845 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752085AbdBHW17 (ORCPT ); Wed, 8 Feb 2017 17:27:59 -0500 X-IronPort-AV: E=Sophos;i="5.35,348,1483977600"; d="scan'208";a="76618220" Received: from unknown (HELO milsmgep14.sandisk.com) ([63.163.107.225]) by ob1.hgst.iphmx.com with ESMTP; 09 Feb 2017 06:28:24 +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 F7.72.18895.DCA9B985; Wed, 8 Feb 2017 14:25:17 -0800 (PST) Received: from milsmgip12.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, 8 Feb 2017 14:25:11 -0800 X-AuditID: 0ac94371-0fadb980000049cf-02-589b9acdc144 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id B7.42.18148.7CA9B985; Wed, 8 Feb 2017 14:25:11 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: , Christoph Hellwig , Andy Grover , David Disseldorp Subject: [PATCH v4 30/37] target: Remove unused arguments from __target_check_io_state() Date: Wed, 8 Feb 2017 14:25:00 -0800 Message-ID: <20170208222507.25715-31-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170208222507.25715-1-bart.vanassche@sandisk.com> References: <20170208222507.25715-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsXCddJ5ke7ZWbMjDN7sVrDYP+sZk8XX/9NZ LFauPspk0br0LZMDi8fumw1sHu/3XWXz2Hy62uPzJrkAligum5TUnMyy1CJ9uwSujM+TXjAX fOWtePbmNnsD41HuLkZODgkBE4kv998zdjFycQgJLGWSuHhuGQuEs5VR4lHvKTaYqrU3VrNB JDYySnzceIoJJMEmYCTx7f1MFhBbRMBA4nfvBbBRzAIdjBLze56xdjFycAgLREjcOJMFUsMi oCIxfdcNsF5eAQeJL08uM0IskJfY1XaRFcTmBIpPePkMLC4kYC/x6sAXsJkSAl2sEi8f3GKF aBaUODnzCdhiZgEJiYMvXjBDNKhLnFwyn2kCo9AsJGWzkJQtYGRaxSiWm5lTnJueWmBoolec mJeSWZytl5yfu4kREtqFOxhf3/Y+xCjAwajEw3vBenaEEGtiWXFl7iFGCQ5mJRHelGlAId6U xMqq1KL8+KLSnNTiQ4zSHCxK4rxZslMjhATSE0tSs1NTC1KLYLJMHJxSDYxMhi9MlszL/iu9 oOYTt3vAzaO77145UTS5uPzeO7NDG8yS7nCIVK/48qwr+/mX7OuXn8p9XqrwvWuq9M9XWQs/ b+Dv/Xj4F9PqrxsPvOl4EpiT/57bY1J25cy+F/6PxW5N4FGt3z4l2E1k9eWm52VlMx5Wb9jP JVpzPn0X97vpU7SFny1NO88pp8RSnJFoqMVcVJwIAEV7t9xpAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJMWRmVeSWpSXmKPExsXCtZGTTff4rNkRBm9aLC32z3rGZHHwZxuj xdf/01ksVq4+ymTRuvQtkwOrx+6bDWwe7/ddZfOYtuY8k8fm09UenzfJBbBGcdmkpOZklqUW 6dslcGV8nvSCueArb8WzN7fZGxiPcncxcnJICJhIrL2xmq2LkYtDSGA9o8SWX39ZQRJsAkYS 397PZAGxRQQMJH73XmAEKWIW6GKU2HTmFHsXIweHsECExI0zWSAmi4CqxMopVSDlvAIOEo/m bmeFmC8vsavtIpjNCRSf8PIZI4gtJGAv8erAF8YJjNwLGBlWMYrlZuYU56ZnFhga6RUn5qVk FmfrJefnbmKEhEPUDsbrE80PMTJxcEo1MGrOWZtzn3+i71GOz9ofS5+dtH4zzXH7uYTkH6tS qubNP3/OvYN15yUji6zgP689b3xRPZK1RE8/mVnBvHHS2RNGl5OT1uj9b8lyNYhs2PJO9140 28v+R0HfXG4/Zz3k8W+qiO++KI5T09inPd5+Kmhz1AUHM3HHFULVFx093PZ0u8RF3+sN0lFi Kc5INNRiLipOBADoUcbytwEAAA== 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 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c index 635d1704e676..c05e99a01815 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, - struct se_session *tmr_sess, int tas) +static bool __target_check_io_state(struct se_cmd *se_cmd) { struct se_session *sess = se_cmd->se_sess; @@ -152,7 +151,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, se_sess, 0)) + if (!__target_check_io_state(se_cmd)) continue; if (!tmr->tmr_dev && @@ -223,7 +222,7 @@ static void core_tmr_drain_tmr_list( continue; spin_lock(&sess->sess_cmd_lock); - rc = __target_check_io_state(cmd, sess, 0); + rc = __target_check_io_state(cmd); spin_unlock(&sess->sess_cmd_lock); if (!rc) { @@ -324,7 +323,7 @@ static void core_tmr_drain_state_list( continue; spin_lock(&sess->sess_cmd_lock); - rc = __target_check_io_state(cmd, tmr_sess, tas); + rc = __target_check_io_state(cmd); spin_unlock(&sess->sess_cmd_lock); if (!rc) continue;