From patchwork Wed Jan 25 23:36:41 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: 9538143 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 C87EF6042C for ; Wed, 25 Jan 2017 23:37:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEDF027F17 for ; Wed, 25 Jan 2017 23:37:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3C5F27FBB; Wed, 25 Jan 2017 23:37:23 +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 3491927F17 for ; Wed, 25 Jan 2017 23:37:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751064AbdAYXhW (ORCPT ); Wed, 25 Jan 2017 18:37:22 -0500 Received: from mail-by2nam03on0078.outbound.protection.outlook.com ([104.47.42.78]:62336 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752074AbdAYXhF (ORCPT ); Wed, 25 Jan 2017 18:37:05 -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=pf4ZH3giGIkxs+NTogpQCgKmqKRLH+s+JY9Rxarlhwc=; b=D34k7jNrx3b+iEsuP+dAbffShfm9srmQ+Ts7eyqizfdD6LZtdJuCHZGe4nX4KtPU93Ud/UxMAos8vdwTixYiGsS+/n5/6nQEIpzgprq4EWwzVXsJsIikfObK0pGlKK8aqXcmU6Lt5z7PQ6uB1TLAK5DaF8Mjb9KjBtGm9Vt7fck= Received: from BN6PR02CA0051.namprd02.prod.outlook.com (10.175.94.141) by BY2PR02MB1282.namprd02.prod.outlook.com (10.162.79.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Wed, 25 Jan 2017 23:36:58 +0000 Received: from BL2FFO11FD034.protection.gbl (2a01:111:f400:7c09::107) by BN6PR02CA0051.outlook.office365.com (2603:10b6:404:f9::13) 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; Wed, 25 Jan 2017 23:36:57 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.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 BL2FFO11FD034.mail.protection.outlook.com (10.173.161.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Wed, 25 Jan 2017 23:36:56 +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 7A.A1.01420.E5439885; Wed, 25 Jan 2017 15:27:26 -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, 25 Jan 2017 15:36:50 -0800 X-AuditID: 0ac94371-7ee9b9800001058c-87-5889345ed7f3 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 30.45.16817.29639885; Wed, 25 Jan 2017 15:36:50 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: , Christoph Hellwig , "Andy Grover" , David Disseldorp Subject: [PATCH 29/34] target: Change return type of transport_wait_for_tasks() into void Date: Wed, 25 Jan 2017 15:36:41 -0800 Message-ID: <20170125233646.2243-30-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170125233646.2243-1-bart.vanassche@sandisk.com> References: <20170125233646.2243-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOLMWRmVeSWpSXmKPExsXCddJ5kW6cSWeEwcGPIhb7Zz1jsvj6fzqL xcrVR5ksWpe+ZXJg8dh9s4HN4/2+q2wem09Xe3zeJBfAEsVlk5Kak1mWWqRvl8CVcXP9VKaC +1IVq873sDYwnhDrYuTkkBAwkVixcDtbFyMXh5DAUiaJ5o2/mSCcbYwSN3bNYYapmnXtB1TV RkaJloUzmEASbAJGEt/ez2QBsUUEDCR+915gBCliFuhglJjf84wVJCEsEClxd9d/NhCbRUBV 4suaT2BxXgF7idv3HrFCbJCX2NV2EczmBIq3nv0JNlRIwE5i/YFWsJMkBNpYJZasO8IC0Swo cXLmEzCbWUBC4uCLF8wQDeoSJ5fMZ5rAKDQLSdksJGULGJlWMYrlZuYU56anFhia6BUn5qVk FmfrJefnbmKEBHfhDsbXt70PMQpwMCrx8Aps6YgQYk0sK67MPcQowcGsJMK7Tq4zQog3JbGy KrUoP76oNCe1+BCjNAeLkjjvxeiPYUIC6YklqdmpqQWpRTBZJg5OqQZGg0VROo/PWSo8v/lC cIv27NkBNvlT/nNwu30/Mz+tvGfRp9uPdhx64D7b3GT7RBuvfd2LXSbd9wopVP6+U/aWzDqB 5ftYZq7c3LLxdeQ2Dy/HyWmfGDXd75jeOPON0ydR+HXoHA+jjzHhk5Pdtr1U3RR967x3x7mO rbOZuly+Rv1cMety9hrzWiWW4oxEQy3mouJEAOWVBhZqAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGJMWRmVeSWpSXmKPExsXCtZGTTXeSWWeEweKLbBb7Zz1jsjj4s43R 4uv/6SwWK1cfZbJoXfqWyYHVY/fNBjaP9/uusnlMW3OeyWPz6WqPz5vkAlijuGxSUnMyy1KL 9O0SuDJurp/KVHBfqmLV+R7WBsYTYl2MnBwSAiYSs679YOti5OIQEljPKPF9zh8mkASbgJHE t/czWUBsEQEDid+9FxhBipgFuhglNp05xQ6SEBaIlLi76z8biM0ioCrxZc0nVhCbV8Be4sLu 1UwQG+QldrVdBItzAsVbz/4EGyokYCex/kAr0wRG7gWMDKsYxXIzc4pz0zMLDA31ihPzUjKL s/WS83M3MUJCInIH49OJ5ocYmTg4pRoYGTliLVKFtI4llDfvubC/VlVh0vn5+1h9hHeYCHfd DO2Zee4CA5eFifNd4QULM1/WujOl6OTOt5/l8vhYRtH+3KVHtPjFHlpualF9qV+w6M7WBb8c 1bYl7d7ZbbLMw0CXYX9dOsfRKR9kb1rsWXpMqEZ5v+W+oyJ6apJRIi98v7QHqIW4KccpsRRn JBpqMRcVJwIAVYrwZLkBAAA= 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)(39840400002)(39450400003)(39860400002)(39850400002)(39410400002)(2980300002)(438002)(189002)(199003)(6862003)(81166006)(2270400002)(7049001)(356003)(1691005)(33646002)(76176999)(50986999)(81156014)(36756003)(305945005)(1076002)(8936002)(110136003)(2906002)(4326007)(8676002)(6200100001)(92566002)(68736007)(2950100002)(6666003)(189998001)(106466001)(575784001)(5003940100001)(69596002)(50226002)(86362001)(47776003)(77096006)(38730400001)(97736004)(54906002)(5660300001)(626004)(53936002)(48376002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB1282; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD034; 1:/Hw8k7KaSKtjMdm++addhQM2LPR+1YMY+Z0rYP2gCK2t7sLjpPRPwPD41H1Z49qjfZhQ/OJ8kMGPBZ80awigIERKs51JpY9Oi8Azyz34EjQ8vrd/pGbnDW7hvSQDFfkc1ac5gGhKmMYSQSQjWjjZxIDDQYCLhEcEdzFfMPRNjQEpavuWfJrWJ3bT914NM0mDlnrbkkAM3NZ9DG4OnZTO1LQiQEFgWBmeE6wE7wYGwStuurl5n+SdmvAaYM6HkVFFSovmQ1lkjuq1Glwiu4Q0t4N2S89CVfUuIePaZJ07rmeEzSY8Z2Af5E/bwFjraHXGnXT8CXhM1+WcDBF7dq/FcHRImTT2DJy5ExSrnfK8ALpjr1uRboImoeaeO5CB+2YBCnIJbdoVJt/8n7ipYZh4Rt6Npl7vPQ5/zMz+nft8ZfWaJn6zOSHRMBI1N1shahIyAmR2jeTcJOxwcqcqlAyRM1LXicotDJVUsl9JJHqWcuUL6E9rj9oLfx95YAeDGGKW X-MS-Office365-Filtering-Correlation-Id: 724ddd19-784a-4ca7-53f5-08d4457b0d01 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB1282; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1282; 3:D52rBTE186bTdlYKeIQbPz6ZM1+tgMk7wH8kEen6w32GMpHjpKGTfYvsOetnZiPi3C2cyA1bIQhPjqfDg/KUmJYVAzKoKdRxSlKjtEroU4YH1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FSB7rnTQ==; 20:VQsJU9vLqNV34CWc1Td3h9xhgzq+KzXqGvFcrGg/v1Vj9pjKFfjvizJaPEL4iyV3tt+v5nJL+99C1cEJbzmV9Q1UlgR12WnADvzCzFuReiMa2z6gFIZrvxGU/XuJwjKhh7D/PH+XQP8vuari2tJaEFOAVXoCY+ZKHKyvt8uhdHI1tRLrQX43BRlr6SDfKH50z3qOfsl8korVB/1AbdjIPZZ7A+8pwtJ7aRHUT9fNqQsQhbcU1gH4me/FRe9bovTGwDJ5kwOev+9J/9fKa70tgQN94FIdYWryU0FEeSbLXba7B1RDKhq0bh2bACePBk6JECan0d6+si0RZ2/RtcDoqE/AI9IDTLox16wSyCHTTjmIlf4tUdCoQ+pbh8saQu5zuZEU0TuVXB5ycrbyt/OvcvKLIOM1bb5bX3sCaDBb1gYeDsorB60YXkQ/i9iDCerMMiqVFY9o05uLg//6hfhzJVj1tgAB2IRq4QADDNqazgeuP7/BMgQCFO+42ve+kkak 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)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148); SRVR:BY2PR02MB1282; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB1282; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1282; 4:9W9BNspOEqFcoYzVzMRK3dF2cqXte7jK16i/rlA4/RcgzqEKnL+V/4LZYnnSkX0NdsqKl+cuFZXI8Ej2c4D5+JTmY61rqjwzkXlP9S3YuQdWD0CR3NCzMU57Cc4PHQZ0t0je79cfUMojKIDztBriHpFnqECGhC9JtOclo2H+wSU+3LHvzLfagfbWu8NoyzG5BNNAIh2L+6ZwQRm4OFb9k3QVgATvH/XE0LHMYI9HAHrMzeJ/PacnMW26YBPlVyUmzuRIB1677xZEQprYlOISb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CpzwRo6N7G07jE3VxctPob0WUCGpUaZ1aGmlwlpoifc0o8Vr1bABiI6MS0Fmmbdias1eFzSnSQEnZsw1DvyayMv35W1T/1BJwm3mJn5mdA+PjU3uq3FYRi4MuVUFCFRMAIWQkj8h6qjEMGvdkRTw== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2017 23:36:56.3199 (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: BY2PR02MB1282 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 Cc: Christoph Hellwig Cc: Andy Grover Cc: David Disseldorp Reviewed-by: Hannes Reinecke --- 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 25d794c20959..0fb46c9ce449 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -2482,7 +2482,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) @@ -2648,7 +2648,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) @@ -2662,17 +2662,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; @@ -2689,8 +2689,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; } /** @@ -2701,16 +2699,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);