From patchwork Fri Feb 10 01:28:45 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: 9565783 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 AC1CF60572 for ; Fri, 10 Feb 2017 01:29:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9DE0E28532 for ; Fri, 10 Feb 2017 01:29:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92C472853B; Fri, 10 Feb 2017 01:29:39 +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 3DF1628532 for ; Fri, 10 Feb 2017 01:29:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751477AbdBJB3h (ORCPT ); Thu, 9 Feb 2017 20:29:37 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:18628 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751463AbdBJB3g (ORCPT ); Thu, 9 Feb 2017 20:29:36 -0500 X-IronPort-AV: E=Sophos;i="5.33,348,1477929600"; d="scan'208";a="82349546" Received: from unknown (HELO milsmgep15.sandisk.com) ([63.163.107.21]) by ob1.hgst.iphmx.com with ESMTP; 10 Feb 2017 09:29:01 +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 C1.97.57638.D571D985; Thu, 9 Feb 2017 17:29:01 -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; Thu, 9 Feb 2017 17:28:56 -0800 X-AuditID: 0ac94369-26dee9800001e126-02-589d175dd915 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 67.9F.11415.7571D985; Thu, 9 Feb 2017 17:28:55 -0800 (PST) From: Bart Van Assche To: "Nicholas A . Bellinger" CC: , Bart Van Assche , Christoph Hellwig , Andy Grover , David Disseldorp Subject: [PATCH v5 15/22] target: Remove unused arguments from __target_check_io_state() Date: Thu, 9 Feb 2017 17:28:45 -0800 Message-ID: <20170210012852.15735-16-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170210012852.15735-1-bart.vanassche@sandisk.com> References: <20170210012852.15735-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsXCddJ5kW6s+NwIg85TEhb7Zz1jsvj6fzqL xcrVR5ks2lafYbRoXfqWyYHV4/72I0weu282sHm833eVzWPz6WqPz5vkAlijuGxSUnMyy1KL 9O0SuDLWP8kpaOWreLdpN0sD41XuLkYODgkBE4lnxwS6GDk5hASWMkkcOVjQxcgFZG9llNg1 r5sdJAFSs3D9Q0aIoo2MEp17IkBsNgEjiW/vZ7KA2CJA9uqeZUwgzcwCOxglJq7cDdYsLBAh 8fP0b1YQm0VAReLcjVNgg3gFHCQWnngJtUBeYlfbRbAaTqD4q9nXWUGOExKwl9ixywCiZBKr RMM3B4hWQYmTM5+A7WUWkJA4+OIFM8Rt6hInl8xnmsAoNAtJ2SwkZQsYmVYxiuVm5hTnpqcW GJrqFSfmpWQWZ+sl5+duYoQEeeYOxrtPvA8xCnAwKvHwvqiZEyHEmlhWXJl7iFGCg1lJhPc+ 39wIId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rznZKZGCAmkJ5akZqemFqQWwWSZODilGhibpu8o PZbxe9Pq88e7j894s9S4+ObqNUs+LZpqbbmX+9W1uGtXV7r97JUKOMHwS0+qjsPz6uMdge8O O5z6VHjOWMGVf/Mhw08K51wSWX+sMSmbdjai2H1p2ZXC2onSLY1uIuc23llf0BlRwJC6qb+0 htEtzXf/ns9zVrHHHMx4daLdveV9Z9oNJZbijERDLeai4kQA20F3ZW4CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLJMWRmVeSWpSXmKPExsXCtZGTTTdcfG6EwdPFihb7Zz1jsjj4s43R 4uv/6SwWK1cfZbJoW32G0aJ16VsmBzaP+9uPMHnsvtnA5vF+31U2j2lrzjN5bD5d7fF5k1wA WxSXTUpqTmZZapG+XQJXxvonOQWtfBXvNu1maWC8yt3FyMkhIWAisXD9Q8YuRi4OIYH1jBKn l/eygSTYBIwkvr2fyQJiiwDZq3uWMYEUMQvsYpSYPOEEWEJYIELi5+nfrCA2i4CqxLrjE9i7 GDk4eAUcJHZ89odYIC+xq+0iWAknUPjV7OusICVCAvYSO3YZTGDkXsDIsIpRLDczpzg3PbPA 0FCvODEvJbM4Wy85P3cTIyRAIncwPp1ofoiRiYNTqoFxQo1L3ZztndfMHnA9cGzmC1vtJLT4 6YOcT8Hll28dCvF41ON+82TXsc/P1hVEddv6dPMoreS5d3imsUdNK29eRIzZIZnZQXUzEooD jjNf2XPq/3wp072P6nmYqvPqg8/PuzFH/ddW5xl+dq8Pxqcud7nFf//115AN/idmWEbd2C2t 2Hx7zXUtJZbijERDLeai4kQAg0OmhcABAAA= 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 7968611f8a1d..af88e25b1b8b 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; @@ -153,7 +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, se_sess, 0)) + if (!__target_check_io_state(se_cmd)) continue; se_cmd->send_abort_response = false; @@ -217,7 +216,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) { @@ -318,7 +317,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;