From patchwork Wed Jan 25 23:36:23 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: 9538115 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 5E39E6042C for ; Wed, 25 Jan 2017 23:37:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 546D427F17 for ; Wed, 25 Jan 2017 23:37:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 495E827FBB; Wed, 25 Jan 2017 23:37:08 +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 D2AA027F17 for ; Wed, 25 Jan 2017 23:37:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751200AbdAYXhH (ORCPT ); Wed, 25 Jan 2017 18:37:07 -0500 Received: from mail-by2nam03on0077.outbound.protection.outlook.com ([104.47.42.77]:44584 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750716AbdAYXg6 (ORCPT ); Wed, 25 Jan 2017 18:36:58 -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=yUsfq7W0Yfy8gSXLWP1+vxeZRgoiIBtcXpD5INj+eTE=; b=AScIEasGae/jtClMxTbFCHW4xlDSS5HJDH8sHKot08TPKbo9pWMe09IPa77wZEjnwkT26xy78TCmm0sXmfnGdx9A1CX05DWB19tNUrl+SwsFkPyRz6lf24tfgLIx3pcPzDUnkBRAtO8a2H3eJj9o64ywxxLJfiUlR3HFqwjqqes= Received: from BLUPR02CA040.namprd02.prod.outlook.com (10.160.23.158) by BY2PR02MB1409.namprd02.prod.outlook.com (10.162.80.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Wed, 25 Jan 2017 23:36:55 +0000 Received: from BY2FFO11OLC007.protection.gbl (2a01:111:f400:7c0c::131) by BLUPR02CA040.outlook.office365.com (2a01:111:e400:8ad::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12 via Frontend Transport; Wed, 25 Jan 2017 23:36:55 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; suse.de; dkim=none (message not signed) header.d=none;suse.de; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BY2FFO11OLC007.mail.protection.outlook.com (10.1.14.254) 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:54 +0000 Received: from MILHUBIP03.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 C8.C8.65426.5C339885; Wed, 25 Jan 2017 15:24:53 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Wed, 25 Jan 2017 15:36:49 -0800 X-AuditID: 0ac94369-b62949800001ff92-28-588933c50865 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id F9.35.16817.19639885; Wed, 25 Jan 2017 15:36:49 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: , Christoph Hellwig , "Andy Grover" , David Disseldorp Subject: [PATCH 11/34] target: Correct transport_wait_for_tasks() documentation Date: Wed, 25 Jan 2017 15:36:23 -0800 Message-ID: <20170125233646.2243-12-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+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5ke5R484Ig+s/jCz2z3rGZPH1/3QW i5WrjzJZtC59y+TA4rH7ZgObx/t9V9k8Np+u9vi8SS6AJYrLJiU1J7MstUjfLoEr49u82UwF 57krZmxZwNbA+Jyzi5GTQ0LAROLPxutMXYxcHEICS5kkdlycyQ6SEBLYwSgx468RTNHywztY IYo2Mko87FwFVsQmYCTx7f1MFhBbRMBA4nfvBUaQImaBDkaJ+T3PgDo4OIQF/CU2bU0GqWER UJWY8/4HWC+vgL3Emu8rWCAWyEvsarvICmJzAsVbz/5kgTjCTmL9gVaw6yQEulglDqxtYIZo FpQ4OfMJWBGzgITEwRcvmCEa1CVOLpnPNIFRaBaSsllIyhYwMq1iFMvNzCnOTU8tMDTVK07M S8ksztZLzs/dxAgJ7MwdjHefeB9iFOBgVOLhFdjSESHEmlhWXJl7iFGCg1lJhHedXGeEEG9K YmVValF+fFFpTmrxIUZpDhYlcV63e1/ChATSE0tSs1NTC1KLYLJMHJxSDYy3DhbprHrL4N57 LeCUe+WLC4Ete+4+Vbnbdvkzs7PiiiMxGnOiZlx3Uzs27ZW95MRVQcka0x5l22+VWaqQbn08 WrS6JkZlyx4mOV9z1b6qFbW7f3jMKhW8rx9xcwXbaQv5OULxAUkmZuvlLnY5R7d6v9GQdLN/ FSnyr+Sp82bvxVucLt8WuK7EUpyRaKjFXFScCABU4U/xaAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKJMWRmVeSWpSXmKPExsXCtZGTTXeiWWeEwbPFuhb7Zz1jsjj4s43R 4uv/6SwWK1cfZbJoXfqWyYHVY/fNBjaP9/uusnlMW3OeyWPz6WqPz5vkAlijuGxSUnMyy1KL 9O0SuDK+zZvNVHCeu2LGlgVsDYzPObsYOTkkBEwklh/ewdrFyMUhJLCeUWLt+f3MIAk2ASOJ b+9nsoDYIgIGEr97LzCCFDELdDFKbDpzir2LkYNDWMBfYtPWZJAaFgFViTnvf7CD2LwC9hJf 9s1mh1ggL7Gr7SIriM0JFG89+xNsppCAncT6A61MExi5FzAyrGIUy83MKc5NzywwNNQrTsxL ySzO1kvOz93ECAmIyB2MTyeaH2Jk4uCUamDkUZSSqoqY9O3YdJlm7XMf7ja+3SK99Nj2lpPT FxQf/qJjovJPjzfx/tOsTeu862eHfw4J2+QjUBwhx7dy776NHvP8GEsefdM+JeI4fWlmMQPD 3Z+5nWzTIve1OFw9scCC5+3JyzwtTJWnfLWa9Nuiijc7vVzgq8XgvmOxeN6GzVkX77JMi1ms xFKckWioxVxUnAgA6bYcZLgBAAA= MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39850400002)(39840400002)(39860400002)(39450400003)(39410400002)(2980300002)(438002)(189002)(199003)(2906002)(5003940100001)(5660300001)(4326007)(189998001)(6666003)(33646002)(48376002)(2950100002)(50466002)(6862003)(110136003)(7049001)(69596002)(1076002)(38730400001)(626004)(68736007)(6200100001)(77096006)(92566002)(50986999)(86362001)(76176999)(81156014)(54906002)(2270400002)(50226002)(47776003)(356003)(1691005)(53936002)(36756003)(106466001)(8936002)(97736004)(8676002)(81166006)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB1409; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC007; 1:KCRUQJ4iVhLnCDPyJjOTReffNPAfs4/YH27w2C6lsXwNs788Zhhd4sZBvsD6Bk0xixSfizyf5sfB3lqVPqH8N9UbsRYQAc5h2ERKWQVxpHKZ+tdbNy1i3jZgbr5QqeHZmqIw//oSU7YXobOj+VKogl4DIy8Euh32FPxbo67ejU62EVjlKjp0pF8EEAtuuIK3rHHvDLlVMHEWGfcdCdJe36BxDhhN++AaXGQ7md35b877snJDpNEiXuMZNpbo+NOLsN+jI+7lZTSnLg4bMnwIJF4qiuTFGXmXnaFXYb0zWnEIrIt4niM4UE3zkXzf2piWFTy5ANxk0RkoQRwxrn60FaUYU10UCRmvx8BVc7lBhrQzhCrMa8TP4mnjl8Ge2zjzd8bjQST9pBwsZTscgY/nih//gLwxUeMoACJKeGXMMtIRCCBCRT4uyUnNSly1rN/sh16qOr3b4nmUWr4xxBRCFSL3qEB/JSWySuK7f/I3bGWF/RItI5Uf8NPIit4y3tKb X-MS-Office365-Filtering-Correlation-Id: f158ef52-6023-411e-3c2d-08d4457b0b77 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB1409; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1409; 3:Z5WN76/8CGBjKNUd1JvQkgDzCW79grh6rYH3N9p343LFnbJ+midKU0hnp/nx0MIUDnNUen4N8bRIMgkRowKD5J5goAGSKWjzvEsCl7szKvkgqM30FfiUxZ4eHG1jzKN/lrPfHjl0Z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bFy+AXf6S06o5XL3RyZiKO+OEAFFqmuu9IEtpC4DtAkIgCHrmypFrHfhwoUamGJXVMMNxGAbb0X8OEXVyGMn6sR0QA+G4YF0wdrDvmMvJFnBT4IhxZaQQ/AaBtH+b+3n1NNW1hNJepjqtWhRcadhN1Ma29gcH6D4Gs8HqgHstTSkKlQ3xvkAEa07hbSFc0Zg/b9yufUNuNgtV3cmuOddj5txvvBhvvTP7433LZIYRHWHkkvU38dOdUF2UYq74GYjnGUUiIXLui9RpU/NuJX4kMwebWWQZ/hNPnVmllP6Zsy3EXWMfXjpJXeThATBq0yLVcB7KFp02/ixEZVpoJ2mfmW/GPqmPNaXog9182jeFZgFXpSfoDZutSB/nqOBsIjbMPDxJrWIFML3SEIzqzDgLCnDVfNOYu/o+q5oymFgO8P9iI4UjgewF1hHXEX0S+JvuAUNIsZkkPghJGSjVPZpz92zuSXP0TbKIj7Q6dg3JW93iBWi+ 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)(13018025)(13016025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148); SRVR:BY2PR02MB1409; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB1409; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1409; 4:27O3xQKOsp8AwACVvSdyJKtDZT2SG1rAlS1dzC1lKa4dsJRu/DiW3wIctiyiIrHYpGWN4KOWmLCQMmLIVEC8HaUYsyiiArCS7y3pL9bbtLm62wtbZQUtIy4+pYhmMhElFcLtFupiHp2T3JdYMevVI9tWwXnUQlYW30jXvEe0KwWyvdWefeidsE2Apo75k52eQgyvNk/iZqm6L/UA5I6kKxmKFCh3/AzVT0vqYuYacUz4RihfmqtUnm2mdIAoXTMrkhlgydmjUeXCgbgqDUxpHnrKWM6cml7z9pTReWXU/sYbcwTe4mTp1U6gcKp+1dhk2lKA9kwdfxg7EHyY3zrVidnr36fudMPow0OY3t/OcU7BTNbiPH3CadVpcW+tNkdcnmu1AWnV90e1kgLa3LZOSDR+FqIzZkf2A+HEbDg2C5XEOwderx8OKQabpAVP2XuL+JXBDkbTaUi5gofhabiBWugtIspbW29tZLMaYY/OSXiOxm1Hqzd37+2DEObOYc7ygoE2DeE9My+RtFhW3A7UBSImPRlxNosVI/tLYb/6xXPJrr70pmRxmqfiAhlyk+0xoiYzzjDmdGyW+sDTZQz0p4fRRqKtHEJ6RSQJba4g4VTDmq73gAKB1Dtc4fOJV7deM1elSBXJera0+lVx+KffA0hGPO+cSKSogb1hc6nKQUk= X-Forefront-PRVS: 01986AE76B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR02MB1409; 23:3lGipcGaBa3+gp4DqMDtDkch82MQxgpZjnDLkYyoM?= =?us-ascii?Q?G4fBs2avjyGSHZORgKNGXBBZ6QL71HiF8BGhO5f2pU+UgjtpaWX9DRdbUV50?= =?us-ascii?Q?/HTN0E2NZo2N+LoXKPnhQvAZDocjoqXFWgJetWWSH4K3wtNf7HOQ6vGQUdZm?= =?us-ascii?Q?3FZQeh1J1jmUvlaIvJllGgRYXh2BIwefIkvkEkfE0jGqVFC81KssOZ0+KxA3?= =?us-ascii?Q?TqYakYe+TUhg6jGUup2bKxohMRxm3OVWp9F+FJhh855nPdvm891kPRXOMcXy?= =?us-ascii?Q?nJVRrJvELXQfCnHsSEFSvwowzC8t4/8jjb2ygcDJS9WrTTRjqhYSBVgzqey9?= =?us-ascii?Q?Fb2lGdMvuuuOt+lsOti1bUFnhMTLRWvCYONuWzbRhZqCLej+ifKLtUYdXJkr?= =?us-ascii?Q?+07wp18tYgvfn5fUciDXTzitS9lG8zjVvj3bthwBIDcVdqBBLosmbsnyH8xb?= =?us-ascii?Q?8w6nxKYNpAgybWeS1SuiM9W+zheV/eqmkotJTB7qDEwuAywL9rESFmA0RbIJ?= =?us-ascii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8f4hc2XCMdFneCpvCVbOLVD2isRTWQlM96kWwzSInEiBQrhPxaEDmOyIhwn6B/GPrFr6T0SqWtPvXEZyJLSknXErvJxLHvv3Uj1sa+OPtcYusnGWTRYT9z6oCg0HlZBk7+jI3qhMWynkNyUv/aFdCOa02wpgqrXVbSCsMjThQNQYRuQlcJXy9u5ZdS6AZNlIeycU8Y/w+zF952nONfoIFE7WfgyUVTuyP9uTik08K6EqNHIxu2C+/LtnR1JfEchsKExm1PrWYpZdxbtl7eN2I/oADleg1fi+kw/azWPbL4FiH8g6XZQsQHY88TYymd+q/7a/oAmnm5vg==; 5:ltejm8TAMxd1p4liJtad9ZLuxZMymADyIU3jI17pO/mlAv7ksK29zHSzAe/GH1D7D+qUkrwUxORcH6hAMZJr9QjmZ1RNFEVzP8pPsBjiGXTq4FsfOnUpzmXYlO6OCy7S7QJQuGXeI/UMXt6uoIioIw==; 24:d7+nlhuvUukdUWNFHxGtGL/CwejwaqkqAd7EBJB1/0IMEFWMLdO8gAM5WQtfy/hRE+Y434ZZH8masp8ekqg5KDQY5ZYcDziNmxhP5fgCYHQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1409; 7:2UgttcMuEn+7W2JkdUc4QuR01j3X+g6a7dQVnderEKfRFCTLGxomAfmMmVW8ZoR87b7269uBncRcJ2BnoAmUHN0A07tczdDm6qSUChblpMjnmsaT1+uoxUFaes9DV+0cH+BckOxUyiIUmhTVbCFwwQryzjvUm/A0Hn8S6/bFzp0lASnN04sj0ikbWeVdYL6sUts0goi6c/drAtPN1GiDWdt7723H71QqN0SurN+hsn4h7BeZmDc393To3JO93BIp5QHGYhivCD1914KzL7n4xquew/3MrHC6RAm22qsqfFQH6gIvH4S+LsYQtkiwTp8ZO2twW6dPeUTry+krhpSM6N82GsK/gLeMiGY1ebuuO1XHAZOrrwbXf5H7M75ZPW3mtuo9OldjejSvXl7vs9/ivXhkUEanhq79yvPC+Q/pEGyLfHXsURxxf6S+Q8++VAYaSfmKkALwh6o1z7dWbBOblQ== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2017 23:36:54.1272 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB1409 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 transport_wait_for_tasks() not only waits for command completion but also sets CMD_T_STOP. Additionally, this function is not only called by frontend drivers but also by the target core. Update the transport_wait_for_tasks() documentation to reflect this. 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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 9b1dced4534a..6c451ea4f429 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -2756,11 +2756,12 @@ __transport_wait_for_tasks(struct se_cmd *cmd, bool fabric_stop, } /** - * transport_wait_for_tasks - wait for completion to occur - * @cmd: command to wait + * transport_wait_for_tasks - set CMD_T_STOP and wait for t_transport_stop_comp + * @cmd: command to wait on * - * Called from frontend fabric context to wait for storage engine - * to pause and/or release frontend generated struct se_cmd. + * Returns immediately if CMD_T_ACTIVE has not been set. If CMD_T_ACTIVE has + * 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) {