From patchwork Thu Feb 2 00:58:48 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: 9550947 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 9370E60236 for ; Thu, 2 Feb 2017 00:59:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EDE528456 for ; Thu, 2 Feb 2017 00:59:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73D962845F; Thu, 2 Feb 2017 00:59:43 +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 E788028456 for ; Thu, 2 Feb 2017 00:59:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751393AbdBBA7m (ORCPT ); Wed, 1 Feb 2017 19:59:42 -0500 Received: from mail-sn1nam02on0089.outbound.protection.outlook.com ([104.47.36.89]:59840 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751422AbdBBA7i (ORCPT ); Wed, 1 Feb 2017 19:59:38 -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=nqOuJwiwjaBqOuct4Hco9kkb53Es7Cr1/iPn5tktyF0=; b=P1lRGKoz/3RzELxS8wVQbYxENpRyr3foZRjNaXVx3KZC96wkHDfnvHm2zyx76Q5zr5oyLgUgLnY4Ys6Wq4fYs8jshwPUNdouj2LJaHCGMBuBzsorZKPpFug1GUmg0EPNO4o1X20ttqOyiup6883xIKLuTxMvNheI8c2+Pkbsohg= Received: from BN6PR02CA0064.namprd02.prod.outlook.com (10.175.94.154) by CO1PR02MB047.namprd02.prod.outlook.com (10.242.163.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Thu, 2 Feb 2017 00:59:05 +0000 Received: from BY2FFO11FD004.protection.gbl (2a01:111:f400:7c0c::181) 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.874.12 via Frontend Transport; Thu, 2 Feb 2017 00:59:04 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; 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 BY2FFO11FD004.mail.protection.outlook.com (10.1.14.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Thu, 2 Feb 2017 00:59:03 +0000 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 EC.BC.01420.F0282985; Wed, 1 Feb 2017 16:49:19 -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; Wed, 1 Feb 2017 16:58:57 -0800 X-AuditID: 0ac94371-7ee9b9800001058c-a8-5892820f99d6 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 54.73.16817.15482985; Wed, 1 Feb 2017 16:58:57 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: , Christoph Hellwig , "Andy Grover" , David Disseldorp Subject: [PATCH v2 31/36] target: Change return type of transport_wait_for_tasks() into void Date: Wed, 1 Feb 2017 16:58:48 -0800 Message-ID: <20170202005853.23456-32-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170202005853.23456-1-bart.vanassche@sandisk.com> References: <20170202005853.23456-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsXCddJ5kS5/06QIgyfn5S32z3rGZPH1/3QW i5WrjzJZtC59y+TA4rH7ZgObx/t9V9k8Np+u9vi8SS6AJYrLJiU1J7MstUjfLoErY8alqIJe 6YoFs76zNjB+FOti5OSQEDCRuPLpGjuILSSwlEli8bJcCHsro0THmmCYmh8zb7N2MXIBxTcD xY+dYQRJsAkYSXx7P5MFxBYRMJD43XuBEaSIWaCDUWJ+zzNWkISwQIzEm9P/mUFsFgEVie+v V4E18Ao4SKzt7mCG2CAvsavtIlg9J1B88XGIoUIC9hLf/hxlARkqIdDGKjHz5x1WiGZBiZMz n4AVMQtISBx88YIZokFd4uSS+UwTGIVmISmbhaRsASPTKkax3Myc4tz01AJDE73ixLyUzOJs veT83E2MkLAu3MH4+rb3IUYBDkYlHl4BkUkRQqyJZcWVuYcYJTiYlUR4fRuBQrwpiZVVqUX5 8UWlOanFhxilOViUxHlbX/dHCAmkJ5akZqemFqQWwWSZODilGhjPmR4omriVfcnfZB8/5+35 i+vYvy5JWJ63Kt+ZK92ppUH5XLLLmXSzS2ayk85FpnS/u6Rzq21Jk/ytBdrp70/z6OwpdN3k N9OU22/6HFtls9eOp3gV1me+NJjXaqfDVX1qjUuMozm3ZWRYWePekzs/iJicDz3q7qM+YZme KOdFk72aokztsUosxRmJhlrMRcWJAB4LD0BnAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKJMWRmVeSWpSXmKPExsXCtZEjRTewZVKEweY+FYv9s54xWRz82cZo 8fX/dBaLlauPMlm0Ln3L5MDqsftmA5vH+31X2TymrTnP5LH5dLXH501yAaxRXDYpqTmZZalF +nYJXBkzLkUV9EpXLJj1nbWB8aNYFyMnh4SAicSPmbdZuxi5OIQENjJKHJ3QyAySYBMwkvj2 fiYLiC0iYCDxu/cCI0gRs0AXo8SmM6fYQRLCAjESb07/B2tgEVCVOLDnJRuIzSvgIHGyfRsj xAZ5iV1tF1lBbE6g+OLjEEOFBOwlvv05yjKBkXsBI8MqRrHczJzi3PTMAkNDveLEvJTM4my9 5PzcTYzggOCM3MH4dKL5IUYmDk6pBkb7D76W7ontfVYeMwujpk672qwjtfStyOQZyZs+6TzM erLkXozkodr0ZQtjvnjcsrO3KJW7NGMFl6bnK7kuVtZkh6ainUcvHb67bN6J33Lp3VfmfPg6 +fbmozP1N23Yp8VeFX9B0PrnpKB1xUx/aq0ncTbr3Flsc4iX1WrprTqVnQ939QnHCMxVYinO SDTUYi4qTgQA0UD2mbgBAAA= MIME-Version: 1.0 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:(10009020)(6009001)(7916002)(39450400003)(39850400002)(39840400002)(39410400002)(39860400002)(2980300002)(438002)(199003)(189002)(2270400002)(53936002)(92566002)(5003940100001)(6666003)(69596002)(189998001)(36756003)(1691005)(2950100002)(5660300001)(6862003)(575784001)(68736007)(305945005)(86362001)(6200100001)(626004)(8676002)(54906002)(7049001)(47776003)(110136003)(33646002)(8936002)(50226002)(1076002)(81156014)(50466002)(48376002)(97736004)(38730400001)(81166006)(77096006)(356003)(106466001)(4326007)(50986999)(2906002)(76176999); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR02MB047; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD004; 1:TjOibiP4/GP0tmoe6OOqlWPZsWWAfojUh1AobjpQxsfYl/s/GFl6efGjs/Dc3UB3YSavxcToViU6Q8nmTPUwHmXVoN57Hb5qQ2OBJmFQMM/Ydf6yad0UMIlaTUVUbBPuL4PS7PglFTZ8RjGlk6yN54DIK+g4p5IMrzhxUwtmOP6i7eSYLAB3ksxiaZdWlbGyHW3+g2wk951JWmAxA4otcdzqGbEsrIBzgdRy5NLQE1DRWRfnkDzb5RWAf3ooVvxIi9tBlUtpNk3fOKvLi2e+qlFQtwSc1eXg+2wKxyQareUI10LrTVb9iSCIbmThjkra/OKXdOT7cLsjh5cr5qGLWMWlTyBtpYEr6U3xfgO7HWYquAwf6xVKRhVC+DusNL3uJrMhTAhu/LfkgoYk1AKRlYiUOI/i5DXjV31KPjp/L+iRg4lK7u5MGCMJ25bMoztVkBViIeGAuJEsCgy9ntaTeEOXAOFuFdDoHGTiu/3QVG09srvNcRGicwkiqO2gHP7C X-MS-Office365-Filtering-Correlation-Id: 76fcfdda-1180-46ab-e3a4-08d44b06aec1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CO1PR02MB047; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB047; 3:5zfK9qd4OVbkjs47IGAQO4ApD0n9Ca2twUO12KQLV6h/EkmeHfZinW/H1RyKIPEYKnRpIhfBHdyLaThPzY2qcDDijcrWyoU4Ia7Mz5TfSa2nmbGxN+7kn2KmG2BFO/Cnj43a/fq3UBRtjVgN0YqZ1gIQ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aQ9rH6nhyuAptsu3MLmerjYENPaGNjlWRrmZJvxERYI/cYaLltqOt9r0kgf1fB8s2fZiNuwINjhYrajxdMGJJTuil9azSx4Ds3V1D3FRFR/Oc75jpZOlMj5tB6asiBt8aux9Mmox3dBJZDGGUCb2ZMxwgP/CKO5Hp3K8AYDmTtSeee0qywGW+iEJ5BC9xeh+PUf3w1w1n6fuy+gO2FXOd/djgcrFs0c+TrbvEAJUP2tMEUWa2cuGICACtpKTpSzonrbWXrFc/dGbiut9x1artSTI1h3XD4BW9BJ01gpkfWMaAKUB/Z+gSBJYTNFInKSXtaXO5SlISu1gG8iFM7AVMyRIGilpFjW5MHJIk9cwGhaPXvxCGcmSpb12vDJnNnRQSvqd/MC56wV99wmX8e7FVDbL90XQRKK2dAxd5X2ppNb05HvZDc/vvdMBWZ3Hyl1MSQXlq+qR0sxVKIHBIyCe4/yc31jLtSp6EXp9U39 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)(5005006)(8121501046)(13018025)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123558025)(20161123555025)(20161123564025)(20161123562025)(6072148); SRVR:CO1PR02MB047; BCL:0; PCL:0; RULEID:; SRVR:CO1PR02MB047; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB047; 4:p7W5l5PvrHE4fYShC+eh3reXlaZyXFq+MtWYA4qxA7jXbcDfqlck0rbzcmESZRmcKM+U2TdOZ++ZzwSuAdhNa+OEVrbAs14NOyJ5d9bTF0dK5e37KfTE5Vr8w0c7Kei51j3loS0Y3LigO9hpDOJzYmhbplPc8QIE0x9wpqgVk2xxRRauP5NVge6IxCdB4nsQSllKuB3ZvV1h6qha2RfoSeUE2SSgml+rV2ms6/4i2CX5VeaR9t0bnwwcLOe/9zKQnQoP6sG+ketPmYeqhuvjTtWNh31BY/grH09geJLX8vnQNbdGTut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NDuVELKYGyJ1quRTqAU9YX/kk6HXoX78Vc4BaHM4nLo/VdZzzK3dksw0ePwvPB+CGLe2K4JYFJhceWRLAhdp16Mb0eIT48WZCoK/Dd+W8IOEze7K/XrrZkrZ9d+HaclTyIzBlKYpazwc5ztsXHr3m+/LSVj6RXdj5QNjxs0lQOjFhHdQO9u0HmFv8E51ov4IXa9PU7vmNOhdNoBrBTI00BZdeigssQCuBlxGwrYDCJVCjEt4ajHUc X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2017 00:59:03.9599 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR02MB047 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 None of the callers of this function uses the returne value. Hence change the return type into void. Signed-off-by: Bart Van Assche Reviewed-by: Hannes Reinecke Cc: Christoph Hellwig Cc: Andy Grover Cc: David Disseldorp --- drivers/target/target_core_transport.c | 21 ++++++++------------- include/target/target_core_fabric.h | 2 +- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 6379abc521b1..185f0e59043d 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -2496,7 +2496,7 @@ static void transport_write_pending_qf(struct se_cmd *cmd) } } -static bool +static void __transport_wait_for_tasks(struct se_cmd *, bool, unsigned long *flags); static void target_wait_free_cmd(struct se_cmd *cmd) @@ -2662,7 +2662,7 @@ void transport_clear_lun_ref(struct se_lun *lun) wait_for_completion(&lun->lun_ref_comp); } -static bool __transport_wait_for_tasks(struct se_cmd *cmd, bool fabric_stop, +static void __transport_wait_for_tasks(struct se_cmd *cmd, bool fabric_stop, unsigned long *flags) __releases(&cmd->t_state_lock) __acquires(&cmd->t_state_lock) @@ -2676,17 +2676,17 @@ static bool __transport_wait_for_tasks(struct se_cmd *cmd, bool fabric_stop, if (!(cmd->se_cmd_flags & SCF_SE_LUN_CMD) && !(cmd->se_cmd_flags & SCF_SCSI_TMR_CDB)) - return false; + return; if (!(cmd->se_cmd_flags & SCF_SUPPORTED_SAM_OPCODE) && !(cmd->se_cmd_flags & SCF_SCSI_TMR_CDB)) - return false; + return; if (!(cmd->transport_state & CMD_T_ACTIVE)) - return false; + return; if (fabric_stop && (cmd->transport_state & CMD_T_ABORTED)) - return false; + return; cmd->transport_state |= CMD_T_STOP; @@ -2703,8 +2703,6 @@ static bool __transport_wait_for_tasks(struct se_cmd *cmd, bool fabric_stop, pr_debug("wait_for_tasks: Stopped wait_for_completion(&cmd->" "t_transport_stop_comp) for ITT: 0x%08llx\n", cmd->tag); - - return true; } /** @@ -2715,16 +2713,13 @@ static bool __transport_wait_for_tasks(struct se_cmd *cmd, bool fabric_stop, * been set, sets the CMD_T_STOP flag, waits for t_transport_stop_comp and * clears CMD_T_STOP and CMD_T_ACTIVE. */ -bool transport_wait_for_tasks(struct se_cmd *cmd) +void transport_wait_for_tasks(struct se_cmd *cmd) { unsigned long flags; - bool ret; spin_lock_irqsave(&cmd->t_state_lock, flags); - ret = __transport_wait_for_tasks(cmd, false, &flags); + __transport_wait_for_tasks(cmd, false, &flags); spin_unlock_irqrestore(&cmd->t_state_lock, flags); - - return ret; } EXPORT_SYMBOL(transport_wait_for_tasks); diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h index 25bfdd0d24b0..1e0b4cbd6580 100644 --- a/include/target/target_core_fabric.h +++ b/include/target/target_core_fabric.h @@ -151,7 +151,7 @@ void target_execute_cmd(struct se_cmd *cmd); int transport_generic_free_cmd(struct se_cmd *, int); -bool transport_wait_for_tasks(struct se_cmd *); +void transport_wait_for_tasks(struct se_cmd *); int transport_send_check_condition_and_sense(struct se_cmd *, sense_reason_t, int); int target_get_sess_cmd(struct se_cmd *, bool);