Message ID | 20170125233646.2243-25-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <target-devel-owner@kernel.org> 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 3B1576042C for <patchwork-target-devel@patchwork.kernel.org>; Wed, 25 Jan 2017 23:37:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30CAE27F17 for <patchwork-target-devel@patchwork.kernel.org>; Wed, 25 Jan 2017 23:37:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2504F27FBB; Wed, 25 Jan 2017 23:37:34 +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 B3EF427F17 for <patchwork-target-devel@patchwork.kernel.org>; Wed, 25 Jan 2017 23:37:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752309AbdAYXhd (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Wed, 25 Jan 2017 18:37:33 -0500 Received: from mail-bn3nam01on0057.outbound.protection.outlook.com ([104.47.33.57]:1504 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751332AbdAYXhb (ORCPT <rfc822;target-devel@vger.kernel.org>); Wed, 25 Jan 2017 18:37:31 -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=LdmBvd1f7BHuee73d6zSym1as7D3ZL6ZQv3Yvbx+YiY=; b=HUMZBNEoRJFpzFviaz06Q1/1DBUHAfIiTIK1NORDiFHNEvaDjW8Cjaub8oPbh2JGHJmACLjxOSjEBJol86vpiJJhva/yrR1nMiI+DKw0JvLGnFp/aIZ6mJts+PX1bAzUtuozZ3VXue56+Ag0paXZtiJ+V1dM7p3LIssq/cRCcqg= Received: from BY2PR02CA0105.namprd02.prod.outlook.com (10.163.44.159) by DM2PR02MB1420.namprd02.prod.outlook.com (10.161.143.152) 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:57 +0000 Received: from BL2FFO11OLC013.protection.gbl (2a01:111:f400:7c09::128) by BY2PR02CA0105.outlook.office365.com (2a01:111:e400:5261::31) 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:56 +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 BL2FFO11OLC013.mail.protection.outlook.com (10.173.160.161) 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:55 +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 5A.A1.01420.D5439885; 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-86-5889345d8a47 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id BE.35.16817.29639885; Wed, 25 Jan 2017 15:36:50 -0800 (PST) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Bart Van Assche <bart.vanassche@sandisk.com> CC: <target-devel@vger.kernel.org>, Christoph Hellwig <hch@lst.de>, "Andy Grover" <agrover@redhat.com>, David Disseldorp <ddiss@suse.de> Subject: [PATCH 24/34] target: Simplify LUN RESET implementation Date: Wed, 25 Jan 2017 15:36:36 -0800 Message-ID: <20170125233646.2243-25-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+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5kW6cSWeEwZQT7Bb7Zz1jsvj6fzqL xcrVR5ksWpe+ZXJg8dh9s4HN4/2+q2wem09Xe3zeJBfAEsVlk5Kak1mWWqRvl8CV0X1oHlvB XO6KLR+7WBsYd3B2MXJySAiYSBw88Yeti5GLQ0hgKZPE9TfbWCGcbYwSN3bNYYapOnm3lREi sZFR4u2DFhaQBJuAkcS39zPBbBEBA4nfvRfAipgFOhgl5vc8AxrFwSEs4CAx954FSA2LgKrE zcmbGUFsXgF7idnLD0ItkJfY1XaRFcTmBIq3nv0JNlNIwE5i/YFWJoiaNlaJVffSIXoFJU7O fAJWwywgIXHwxQtmiHp1iZNL5jNNYBSahaRsFpKyBYxMqxjFcjNzinPTUwsMTfSKE/NSMouz 9ZLzczcxQgK7cAfj69vehxgFOBiVeHgFtnRECLEmlhVX5h5ilOBgVhLhXSfXGSHEm5JYWZVa lB9fVJqTWnyIUZqDRUmc92L0xzAhgfTEktTs1NSC1CKYLBMHp1QDo0nDRvGC4/Nm6IRMuxwp tNLDX3WvNPedF5sj5laL7OLl87o9TWx7vYZYdlFXnHVeb6xN0O7E0r3nk89MXe60ke8Rp8bb pUel+zWkO4s/vdqwmGXHGdHA5ra363Y+NrQ68Ix9spLGJYv3Zyayr/gtP6Vmh+eCTxpMSerZ +3Qrpi22nGTfL/tDRYmlOCPRUIu5qDgRANdEmN5oAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKJMWRmVeSWpSXmKPExsXCtZGTTXeSWWeEwafnjBb7Zz1jsjj4s43R 4uv/6SwWK1cfZbJoXfqWyYHVY/fNBjaP9/uusnlMW3OeyWPz6WqPz5vkAlijuGxSUnMyy1KL 9O0SuDK6D81jK5jLXbHlYxdrA+MOzi5GTg4JAROJk3dbGbsYuTiEBNYzSsx6vYAdJMEmYCTx 7f1MFhBbRMBA4nfvBbAiZoEuRolNZ04BFXFwCAs4SMy9ZwFSwyKgKnFz8mZGEJtXwF5iadMl NogF8hK72i6ygticQPHWsz/BZgoJ2EmsP9DKNIGRewEjwypGsdzMnOLc9MwCQ0O94sS8lMzi bL3k/NxNjJCAiNzB+HSi+SFGJg5OqQZG63vuki/irjQ9Lpb9y5d9SK/sxKMH0YtfNO5VlTAX m/Xc4WnhpCa25A8+T0yvBKvuWrq/5uqUAibDD1nbjIVXuTPF3dxSc6Wb1UV01XHHy+IxgUp9 fFsWlD5ms3e7+3s5b8Wq+K1Xnh5eO/tym8KUs0+k70dNXPs786f55tMB56cZf6r+dGjzPiWW 4oxEQy3mouJEAIG+r4O4AQAA MIME-Version: 1.0 Content-Type: text/plain 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)(39860400002)(39410400002)(39840400002)(39850400002)(39450400003)(2980300002)(438002)(199003)(189002)(2950100002)(2270400002)(47776003)(77096006)(68736007)(5660300001)(53936002)(6862003)(38730400001)(76176999)(6666003)(50986999)(6200100001)(36756003)(1691005)(110136003)(8676002)(81166006)(356003)(48376002)(50466002)(7049001)(5003940100001)(626004)(8936002)(33646002)(305945005)(1076002)(81156014)(2906002)(50226002)(106466001)(54906002)(97736004)(92566002)(69596002)(189998001)(86362001)(4326007)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR02MB1420; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC013; 1:s1HmqJY6O3l+mCDQIuABtKyZm/mLYbjyoF3p6xf8csRZ2l8Cj+A2/YMQTXeDRQKd0ia8Wgg7u35tufro/Eby+mlB8KHZy5PghR5mZQA5owdZAfRUMneiO0UmRw5klNr1YYBkjNM/+JDappoa9pwOewTw571JzVBubH69zdxOBONPta7Au3VjYjRIBsCpyC7evQmXyjMMKUmuYOf/EAzPSdJ1yXepSLiRnvyoJauUd2XtcNl1k8K69ydx/hrYQPe+8X8HRn14AQ5X36cvCFH0rzzulpYPqct0sWmlfv/jkkPG7jphdi85RbGO0u9KbOk8ZiLgzzT+BLNy3Gd7FbAOKMQDfHv/4FMDocN2LJeOZcr8nFJ7axfcayGMWA9RwO9+Lvi1HTcRvLrjzlI77lSZm5TSgp9ngNN/FKrIevVffz3zHq3FlUfWY+Z9HKBFqDM7lYOP8PvqOk1j+zum2pNqTKmqtNXuI1RS05cZT2mo5yOK33puAkXL6FPzat4WZJpZ X-MS-Office365-Filtering-Correlation-Id: 1489c25b-a17a-4ed9-e5af-08d4457b0c4a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:DM2PR02MB1420; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1420; 3:Y/ZCzR31BmqsdFvmlvwWEcTCnlSWsyqepwIChNydfPRf10FIWFJKHHH3m/RvlwlF3A0t2ukfOQhSsileAt5UfAPV5C4dHBEkhKYdbQZ4NUScX8H3A/nvAIMrhOrL3FbqYR7b9XynNIZL/yZgBTbzR+GVKO/mwH4gpyBTYmgziKabijuvCRmcaxGg6z9Szx+SqZ2BZm+6J5O3HLY95SsXVSvDMffXzZ2Q6YULxgtploMWw5/cQXNt3hmmh20j96uQjy84nPD/58JlxmxPQI8RNS7aguhQGkV9fxYo5dgwQdh3z4QvjMe7bfUsscN3rq6oAAnDxHLyVjNLIEq87xJCErFllSSFPBP7jreT1h/51rgfWIcyJNU5cvxDUPjp93dLJjSi4/vrrdeL8WaV78Eayg==; 25:pmkvVl8lbycehKBJaAfnL/cp5ce3PFz2HmuSaKKvvKtMkr6U1aJ2hc5zM5QiKmtGGTC8Oo+hIDOHnXHChI3mTTS2BFE0nzo3tWZPg8OldD/YPLLyFugE0YLSm/omwjHIHb6tyvuC1Ow6v7uQ40gRhhvIv0hzk98YGvodS/oBmG4ZgX/cqtj92pdL7IglDwjrlEjXBh+C4k06XyYC98vw1HA7COKKxN57dXE1hGwPwrnwUWSHPaMWrRnNoq/qoM04mAsh/17q1uS8aR3G7PFDfSbB7luOYlYY4PkaHccpxPE814hP9UPrFWDMvQN5rlQjaWKyv6JyZyvahCE7S3o0dUlTeShIthA2FRQhHr9vGIRucSFQkO06v1Y/HC5E91Hw5zAUi/khq4vZjDlXWvtP44416roK2sV0clT+mIutGeFy7InEKHBAlPl0B4ZsQf8RCcYHdQfjh8QE8ceiq+fhAw== X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1420; 31:5fK9YQk5VaAaLbqApEWP83jXya2U/KaOf4xKV9fp/x3Zh7YSs01CMLwnrSvib5plQFRqUmtoHuEiSkvDN0M9wng/ANSerJWw5YqD3sE++P+lJFanQuMocUv8tB7nEzbYObUtCi2IjAtVF8GzC0dtl8wclQGfKb7WDO+b0thuXe493o45Nsqz+s4XGQ8bcMtOhE14mhZOMzamO55oLEfKRHc4Ch8ugSZQB3hgsZFIoYF74g9PigJq4rCcgNQ0movIKk0ocj6vopUAoOINWPG1ApTCV3gF0hWuYn0ifWyowJ8=; 20:na40velmqxNVdrxRpN8PYjYt0JLwZQLMZSaQU5Tk8Rfls1UQwGkJuN8RJ99jDNSUkY8uZlStS/p1mFt9LWN7w4jqaonmYXGXImCnWTT6Kv3T1l+qqZ+XAf+3UxgE8zE/126ausi/hSxZisa1+87so1j2ezCf9yUw42Oljsw84doAxK6/7faUFuSBkcuVMEGiei6ijgLcJP5eeGQ+D+fT1daP/4X8+actDbdmctMuAKPr6T3Mwl4eEsiJQRRLDUOD1SPrKhd/1OkuOT8cJpgqvSWzfwRLPJZKwhnyDKqs/2Ggu1pxMVR/hPxbEuvaTi36LbBhNYRhGLf8G0WHGufGHPDvK8QU5wkPUg2NMBqH7t7gG/AJHFMOaznX2gZZxIe+tq6ou3SLZAnggBlBukoqPP0QnhRau/ui7D3CL1JSXZq1gzUpVsRiwGgkKtLRkexVYiZPv9IUCyw2Sw/yuYUjknHg7Y9VdqMkR/2pzAgsX79+m32R/pB6QP2LP54TB+ju X-Microsoft-Antispam-PRVS: <DM2PR02MB142006B68730632058E5160981740@DM2PR02MB1420.namprd02.prod.outlook.com> 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)(20161123560025)(20161123564025)(20161123555025)(20161123558021)(20161123562025)(6072148); SRVR:DM2PR02MB1420; BCL:0; PCL:0; RULEID:; SRVR:DM2PR02MB1420; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1420; 4:/kfJWfB2pqxrpx4Z5iSV/bCe4BQ1/mOEITX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fcG?= =?us-ascii?Q?Lc8YcVUt5XG57BftkIkGXDLHoXOKbeEKE00wvB17TqQ8Qi14G0Pw/trI3k5V?= =?us-ascii?Q?nuwmhly06QH1zsma4bMaY8EI+CIpk4jmv+Dfp7qU6MQ08KjNUGp2gCbM3TF3?= =?us-ascii?Q?6D1q7T9RPpJnIiaYos=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1420; 6:XJc49u4xWVXcnv7OERTOMs45nq3zHb0P18dydO0p8YzcIzi3iP9RFzALUSeXnRYYgEZdgsnA3LOi2XhQCyDcNIFTsciLTCdoy9nVrNMhv4mQ2yNy57OWrujVRHSCz2sfzedYEwCcmy3i+1SYnr6anM3gDjHr+MnHxj1dsGOHLqKSP6jYGCRFKGTQmrWCo/uy5Ri+jzurJlTV6xJerZ0DrkFVqwG7qoDPxM6Chn+7zOSR5SKyLDdXj1CCiri5nzkn/UcGfQG2O1bE55b4ipEdWfGaPGlVo7CymXLk86GSg66dtt3O7tiX4ficw+zK6PSXqQvMg7vgQ+3Uk3XBgusO39Td/3fzOCY9DeauW8AscjAwV5jzRiEb+yz5BqbFOkiiCWGSUS0FxMc9fe/wGO4dWMTPpgwAjazZz6xddjmmxhW+zmHvVZZc4sdakPZgrdamqeQ3ZW3F2l+xfJAR0o7lRw==; 5:JbAsQzGyQjJHuyobxavjz5HSQrOq/6XahNM0Fo0zH+JvxzzPmdDbchKn5+xHuJNgrIfOENrWJxEM0A7yIH02pskI8o2wtJ7TRH+fIljCZU0KOL3awFSUWkwXN+m2qq9cgl4bXDiHsSovzTcV8JzZig==; 24:U8TcjmiO7FiHlsTk/ROU/Mg3eh7jqQkPd/qRJeb9rw3mIN/DAYC4VjzVhCfvkzGz+lvOagzuj2GAqEDir75zpe1EVHqOxIeOWAi98sKMTfY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1420; 7:YLy6TBO9pB5eLoayzgI4hGAsfVRdtoSZUuE6LkZUvdtzWf1Ujmc8GUvXZ0hdAAbTzJSoR6CC5tCL2mei0b3DYXXC/er5jUNf1RswQjM7aYajuBK750LWpl4WhZuPjTqiZ93XwjAn1rSJ+q+4h+z2kNVvOqrrwGM8LeLswt5iVFS0Y4FDDwXE6/pWY/hzFYl00LeZNT8PzxjLWhCRfxJf5cQ9xF+sy1M3O/uVM7eHFk38fhomUXaQfJYeE7kLckyOCSKasS3xVMgicpPhZeDkpf5IQSLDX/KtyJU2Zj0bQ8asypp3AQDJiB9jVSQF60ts/9veQOkvimibm5rYoa1Jg7VUL7nT19VkbYZfYGCsK/VdJ56Gm+BH6ASj7vMxoXhlR+8w9Hb6nQxa+OgIxtG1cAOz4EyuDAJa7CFXSK2fKg0HoLx0MjSVgMUeMxxWS2mflPSClUpGueAFscMAJsTF6w== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2017 23:36:55.1087 (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: DM2PR02MB1420 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: <target-devel.vger.kernel.org> X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On 01/26/2017 12:36 AM, Bart Van Assche wrote: > Due to the task management handling rework it is safe to wait for > a TMF that is not in the active state. Hence remove the CMD_T_ACTIVE > test from core_tmr_drain_tmr_list(). > > Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> > Cc: Christoph Hellwig <hch@lst.de> > Cc: Andy Grover <agrover@redhat.com> > Cc: David Disseldorp <ddiss@suse.de> > --- > drivers/target/target_core_tmr.c | 13 ++----------- > 1 file changed, 2 insertions(+), 11 deletions(-) > Reviewed-by: Hannes Reinecke <hare@suse.com> Cheers, Hannes
diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c index 75527c83a860..fa74518c1ad1 100644 --- a/drivers/target/target_core_tmr.c +++ b/drivers/target/target_core_tmr.c @@ -228,22 +228,13 @@ static void core_tmr_drain_tmr_list( continue; spin_lock(&sess->sess_cmd_lock); - spin_lock(&cmd->t_state_lock); - if (!(cmd->transport_state & CMD_T_ACTIVE)) { - spin_unlock(&cmd->t_state_lock); - spin_unlock(&sess->sess_cmd_lock); - continue; - } - cmd->transport_state |= CMD_T_ABORTED; - spin_unlock(&cmd->t_state_lock); + rc = __target_check_io_state(cmd, sess, 0); + spin_unlock(&sess->sess_cmd_lock); - rc = kref_get_unless_zero(&cmd->cmd_kref); if (!rc) { printk("LUN_RESET TMR: non-zero kref_get_unless_zero\n"); - spin_unlock(&sess->sess_cmd_lock); continue; } - spin_unlock(&sess->sess_cmd_lock); list_move_tail(&tmr_p->tmr_list, &drain_tmr_list); }
Due to the task management handling rework it is safe to wait for a TMF that is not in the active state. Hence remove the CMD_T_ACTIVE test from core_tmr_drain_tmr_list(). Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Andy Grover <agrover@redhat.com> Cc: David Disseldorp <ddiss@suse.de> --- drivers/target/target_core_tmr.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-)