From patchwork Tue Jan 5 14:23:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 7955321 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D434BBEEE5 for ; Tue, 5 Jan 2016 14:23:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E512920384 for ; Tue, 5 Jan 2016 14:23:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EC3582037E for ; Tue, 5 Jan 2016 14:23:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751579AbcAEOXW (ORCPT ); Tue, 5 Jan 2016 09:23:22 -0500 Received: from mail-bl2on0068.outbound.protection.outlook.com ([65.55.169.68]:59648 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751188AbcAEOXV (ORCPT ); Tue, 5 Jan 2016 09:23:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5LkIxSmW+ujU2mpTsBUMed64OYAVzYtktbPS21gxjtE=; b=CTGGnBtPlArF4/WYUe57rKJWvVvkkuhPnhHjnjivvqY/IYyDKTj8rYwRIDMoQ8D47yuxzbzh+xaPv1GH4VmHIyZNZji7pO18TZVzMA4dhjFYmkR9oY+R+S9RZVXYCX3WSSJhTUh3G1FqUh7g+C4HOv45GvTX2f+P3CTGyZ9si/U= Received: from CY1PR0201CA0008.namprd02.prod.outlook.com (10.163.30.146) by DM2PR0201MB0831.namprd02.prod.outlook.com (10.160.95.152) with Microsoft SMTP Server (TLS) id 15.1.361.13; Tue, 5 Jan 2016 14:23:19 +0000 Received: from BY2FFO11FD024.protection.gbl (2a01:111:f400:7c0c::174) by CY1PR0201CA0008.outlook.office365.com (2a01:111:e400:58b9::18) with Microsoft SMTP Server (TLS) id 15.1.361.13 via Frontend Transport; Tue, 5 Jan 2016 14:23:18 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.173) 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.173 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.173; helo=milsmgep12.sandisk.com; Received: from milsmgep12.sandisk.com (63.163.107.173) by BY2FFO11FD024.mail.protection.outlook.com (10.1.15.213) with Microsoft SMTP Server id 15.1.355.15 via Frontend Transport; Tue, 5 Jan 2016 14:23:17 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com ( [172.22.12.162]) by milsmgep12.sandisk.com (Symantec Messaging Gateway) with SMTP id 78.0E.02821.4D1DB865; Tue, 5 Jan 2016 06:23:16 -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.248.2; Tue, 5 Jan 2016 06:23:17 -0800 X-AuditID: ac160a69-f797e6d000000b05-b9-568bd1d48c81 Received: from [10.50.231.71] ( [10.177.8.100]) by milsmgip11.sandisk.com (Symantec Messaging Gateway) with SMTP id E3.FD.08831.3D1DB865; Tue, 5 Jan 2016 06:23:16 -0800 (PST) Subject: [PATCH 06/15] IB/srpt: Simplify srpt_handle_tsk_mgmt() To: Doug Ledford References: <568BD0FC.70207@sandisk.com> CC: Christoph Hellwig , "linux-rdma@vger.kernel.org" From: Bart Van Assche Message-ID: <568BD1D2.1030609@sandisk.com> Date: Tue, 5 Jan 2016 15:23:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <568BD0FC.70207@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHLMWRmVeSWpSXmKPExsWyRoxnke6Vi91hBqummFu8PP+B1WLl6qNM Fs8O9bI4MHvsvtnA5vF+31U2j8+b5AKYo7hsUlJzMstSi/TtErgy5vy+ylSwTKzi8c/L7A2M nwS7GDk5JARMJL5NaWOEsMUkLtxbz9bFyMUhJHCCUWLn8jfsEM52Ron+gw9YYDoOHznOApHY zChxYOtfJpCEsIC9xKkz01lBbBEBNYlNrxYBdXMAFWlIvNuaBRJmFoiXWPfpDdg2NgEjiW/v Z4LN5BXQkmjb94gNxGYRUJGY/uQSM4gtKhAh8WPDEkaIGkGJkzOfgNVzCmhK/G/dBTaeGche v0sfYry8xPa3c5hBTpMQWMUqcXH9O7B6IQF1iZNL5jNNYBSZhWTULIT2WUjaFzAyr2IUy83M Kc5NTy0wNNIrTsxLySzO1kvOz93ECI4FrswdjCsmmR9iFOBgVOLh5XjZFSbEmlhWXJl7iFGC g1lJhPf1ke4wId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rzWLWphQgLpiSWp2ampBalFMFkmDk6p BsZpXGxu/1Uk+hgd+L7M2n6gsePUBieLiDVdlz+Lrwl0MfGK3ra6P88gM36Kxo//r9l5E1J8 nz9S6t5vXWX7y4rxp6BZl/uRj2GLGD8fbYu94XShpILh/ITyPtcnj2r+nTrKF5P74lr6syXV +un7JV9f8jJ0Z2DdOOdo771zl0t3T/jQci/9krwSS3FGoqEWc1FxIgAR+zXDgQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCJMWRmVeSWpSXmKPExsXCtZEjRffKxe4wg6mLVC1env/AarFy9VEm i2eHelkcmD1232xg83i/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZc35fZSpYJlbx+Odl9gbG T4JdjJwcEgImEoePHGeBsMUkLtxbz9bFyMUhJLCRUaL70DMmkISwgL3EqTPTWUFsEQE1iU2v FrF3MXIAFWlIvNuaBWIyC8RL3O0Eq2YTMJL49n4m2EheAS2Jtn2P2EBsFgEVielPLjGD2KIC ERI/NixhhKgRlDg58wlYPaeApsT/1l3sIDazgLrEn3kQ9cwC8hLb385hnsDIPwtJyywkZbOQ lC1gZF7FKJabmVOcm55ZYGioV5yYl5JZnK2XnJ+7iREcjpyROxifTjQ/xMjEwSnVwOhsLJex kG25hvl0LYHVckpSAWr7E7a9lVDXm+hQEnx7g8rJmL1tQR1MJ/fx7U92WHX5weRZL2d7sz+5 5+nAWDBnv8y7P9x/eqeYb32xNuNkdGlwxl0P5ul6j6VsnmnOzpve8639mqz1hZ03+rfkWUh9 OzrXIyxArS4tM+8Al+MrK57l7j8v8CixFGckGmoxFxUnAgAygczT9wEAAA== X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD024; 1:Y5aBsBxu2/aT6UuwE4YbstP56cUiY8UwqSHJj6ibYv+h2gdPrmigY7OseFVtszMInjXNdAgj9+MhfHnelaqKYEaJN/3qoSF0LfbiyH2h8xWWSCyNuisMw0DwUJKdnzsxftjvA68NhudH+KWKPewaoK6WO8Qi2LPj78/4dtfxdjou1dXOVCKVzLj74xIEtfP26d/ywgVWYyHOjIGlVwzjwLJLVfzMS8Da6xuB1fC5kuReP7vHvVtYleMT1QiFWNaayAHsCMWdjBnTCh2lstixCBX84F9Kswv5LdMRXgEXjHZQsHwL62qWmFJM3qPGRG/gbh9fC7gnHlqHbMqJkAdXHo7wv4ZPZ/i/HWc9xy+/QNizrrxUK+o7Ba9zA0aXfkbX X-Forefront-Antispam-Report: CIP:63.163.107.173; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(59896002)(87936001)(77096005)(50986999)(2950100001)(19580405001)(86362001)(106466001)(189998001)(87266999)(4326007)(1096002)(50466002)(83506001)(586003)(1220700001)(76176999)(5001960100002)(80316001)(92566002)(19580395003)(36756003)(65956001)(65806001)(64126003)(110136002)(23676002)(230700001)(54356999)(33656002)(81156007)(69596002)(229853001)(4001350100001)(5008740100001)(47776003)(65816999)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB0831; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0831; 2:CUAO+sorpjPZ8v3qscc1y2JBTITiMLpZf2Yb48TE2HF1Ui/TZe1qfa4ddCu9/2d8cvc/lLkJ4GpTBnClAzWH8Z7M34e/GFQcgJToCD8ctc0LDmMV+G7rngxXbPgYnl9McZMYJ93b2VyDoOG6qg8OuA==; 3:wGaBX4rxJVj+hFPjGGrd9E1hT/pP07VnogvG7yL0seDyRw3rE9OKaZrQtcgVFZv73v6MtC+e3DBHK4sxHN6rQsLYuqich63szzKU18EUUa9rHdeTOLlZfx/DaZWg3TLibKjYnC3DcvDAUX2QZQn766UOxn6gVIeCz5d0hVxSdudo5yX/hCWL7S1ma1/FYIeGVSBEegUR9dU57ZNa44waEUTs6Rtp6Eil6rnLnkpjX96O+29npQTeni1h0GGJexesXbEjz+nu/WzOwAmI7fj0FQ==; 25:nCRbAh/RVkUZz5mDkG0ePWewCdC2wiQuMmSci0NF9KM5iK4bJNXboT6nRcFfsmh85qRhm3CGgjw5yhCWiRXOEUUyKfqECDOeEji8U4NvwK9Ajl2WBpJNn72WXL084qXzs1Et/NuyB1iS4elHvYhIOKixkM9ECsWiZQg0G5c5WL7/6QbN/hL+K16wArvd+yYCqiyCvKxXIVKFbWk9RNUxtmTYgW/ry8tGGzrQrHS/+Fg/AdSqmH73I66zJ7tM8Sgdw7lJPqJxhBtz6jqhXkaLnQ== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:DM2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Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001); SRVR:DM2PR0201MB0831; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB0831; X-Forefront-PRVS: 0812095267 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjAyMDFNQjA4MzE7MjM6ZUJkalRoU1pJS1ZYdHo4YVBhRVV2U2VC?= =?utf-8?B?a1ljY0pJbGE2dzNHcVl3aDBJZU5kN3FxYkoxb3c0VEtLUTQrSlhWYytFa0pk?= =?utf-8?B?bDJ5Tk00L1EyTnp4QXJWaTU2a2tndElaL3J4NWxYTUs5NUJjWWdnNzE3VXY3?= =?utf-8?B?aWV2Z1NxbklGQ21NZGZJUGNwZHJob2Y4YkFlSDByV0ZPWi85dWtBSVNQSjFN?= =?utf-8?B?WXM3WUk2QWQrRFg1MnFNSUZwSXdSZk9CWTgrQk9NcGs4c01qY3BwaEdXektn?= =?utf-8?B?RE8xUWZSM2FoczlwbkVld2tpN3lQZm1QNGJoODZFUGRaVUxDWE8wNkN3T3Nw?= =?utf-8?B?WTdvTDl4NTRmeWhyeEpVSG1kY0plVWRNa0J6K1FLYlNOMFdiSnFGNUozQ2xl?= =?utf-8?B?bEJtSEVDaTRHM2gzY2FqM0pNTWtWekxlMm5sSldseVdpNUlsRkZ4b05mazB2?= =?utf-8?B?MHBUSWJ0LzQ1SG9GeEFYemVBdzh5b3NkZkJTVHZZdS94SUZBV3NXK0JYRFdX?= =?utf-8?B?L3pXdUlPWmFtb2laZGowQVVoSTVHWEt0RElJVm9tSnFQbDlqSm9wSGp6R21C?= =?utf-8?B?Wm5jNWYzR2xUTjN4R1J2OGpnNzY5MFlWcmdDZ1VYRjFRQkZJaG1JY0UvTHRB?= =?utf-8?B?TXBuWVNOSTA3S1l3NXJ6M1hwYWxpME1yM2JXVFRpMGZKcDV3V2lscFhpQjUw?= =?utf-8?B?S2pOL3BNeGU1eVBaW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8oZ0jTUmCSmAZSntzG5+t+7QiUERJCj5Bw40iCraFQJC4mgsaKRrCFoMTD6VCXW/ygF+gA==; 24:u1XazNuC2BDWQoQJpASQgdV0UEFW4FRGQFSB4+ylE6HVDSSHDda9kTduFN+2JQ0X2UiDjd+WbtRtMCcRkm8KOZ+zDZXu07M2wb62H0onSc4=; 20:MD6GFWuOJ6bly9kKAtxoeIvCLMXcqh796El/ANZhWClwL6AMsxW4qWZkLu9LCd6yBx9/pVdCEQteU+4xz0GXgSyAku/hEfBzmYcpu9WCR5LksfSEiKOmZ3lXOg9lsf43x7aUhpSprINmjeMUZ8SeYXHXFI9k8do1rVtcPcFe4VmSUYEcurSS40vD8JcdAT/9VazlT9Y0w5bzlngFsa/ssAnS0Ev7FWhcBN3blVf5iOB+tJGiovWFShgtNILNhLux SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2016 14:23:17.9813 (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.173]; Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0201MB0831 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Let the target core check task existence instead of the SRP target driver. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Tested-by: Alex Estrin --- drivers/infiniband/ulp/srpt/ib_srpt.c | 54 ++--------------------------------- 1 file changed, 2 insertions(+), 52 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index fc19203..9cb1a14 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -1554,47 +1554,6 @@ send_sense: return -1; } -/** - * srpt_rx_mgmt_fn_tag() - Process a task management function by tag. - * @ch: RDMA channel of the task management request. - * @fn: Task management function to perform. - * @req_tag: Tag of the SRP task management request. - * @mgmt_ioctx: I/O context of the task management request. - * - * Returns zero if the target core will process the task management - * request asynchronously. - * - * Note: It is assumed that the initiator serializes tag-based task management - * requests. - */ -static int srpt_rx_mgmt_fn_tag(struct srpt_send_ioctx *ioctx, u64 tag) -{ - struct srpt_device *sdev; - struct srpt_rdma_ch *ch; - struct srpt_send_ioctx *target; - int ret, i; - - ret = -EINVAL; - ch = ioctx->ch; - BUG_ON(!ch); - BUG_ON(!ch->sport); - sdev = ch->sport->sdev; - BUG_ON(!sdev); - spin_lock_irq(&sdev->spinlock); - for (i = 0; i < ch->rq_size; ++i) { - target = ch->ioctx_ring[i]; - if (target->cmd.se_lun == ioctx->cmd.se_lun && - target->cmd.tag == tag && - srpt_get_cmd_state(target) != SRPT_STATE_DONE) { - ret = 0; - /* now let the target core abort &target->cmd; */ - break; - } - } - spin_unlock_irq(&sdev->spinlock); - return ret; -} - static int srp_tmr_to_tcm(int fn) { switch (fn) { @@ -1628,7 +1587,6 @@ static void srpt_handle_tsk_mgmt(struct srpt_rdma_ch *ch, struct srp_tsk_mgmt *srp_tsk; struct se_cmd *cmd; struct se_session *sess = ch->sess; - uint32_t tag = 0; int tcm_tmr; int rc; @@ -1649,18 +1607,10 @@ static void srpt_handle_tsk_mgmt(struct srpt_rdma_ch *ch, TMR_TASK_MGMT_FUNCTION_NOT_SUPPORTED; goto fail; } - if (srp_tsk->tsk_mgmt_func == SRP_TSK_ABORT_TASK) { - rc = srpt_rx_mgmt_fn_tag(send_ioctx, srp_tsk->task_tag); - if (rc < 0) { - send_ioctx->cmd.se_tmr_req->response = - TMR_TASK_DOES_NOT_EXIST; - goto fail; - } - tag = srp_tsk->task_tag; - } rc = target_submit_tmr(&send_ioctx->cmd, sess, NULL, scsilun_to_int(&srp_tsk->lun), srp_tsk, tcm_tmr, - GFP_KERNEL, tag, TARGET_SCF_ACK_KREF); + GFP_KERNEL, srp_tsk->task_tag, + TARGET_SCF_ACK_KREF); if (rc != 0) { send_ioctx->cmd.se_tmr_req->response = TMR_FUNCTION_REJECTED; goto fail;