Message ID | 20170202005853.23456-35-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 1C7B860236 for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0688D2844A for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE2C72845F; Thu, 2 Feb 2017 00:59: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 D19772844A for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751419AbdBBA7d (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Wed, 1 Feb 2017 19:59:33 -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 S1751365AbdBBA7N (ORCPT <rfc822;target-devel@vger.kernel.org>); Wed, 1 Feb 2017 19:59:13 -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=GqPVKbSLqexKB3f6RmBr5VCzgpB3VYasRgUury3oQVQ=; b=qVV6HUmpnqtBhKDgjh/djuPBaMYa695vMUMmmWsPvIm8u7eWvKuZNniqh/bcKMzwBfznrNPnxQEqU3QgoBWWW+k1ymaCeyv0Kujjb0XUKXqrvGaSDicQD1TiH8/W8Y2rHgY7Vjak4yPUcI/b6To8PLGZzQaFFxBW46PWyGL0sCg= Received: from BY2PR02CA0079.namprd02.prod.outlook.com (10.242.32.37) 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:04 +0000 Received: from BY2FFO11FD018.protection.gbl (2a01:111:f400:7c0c::197) by BY2PR02CA0079.outlook.office365.com (2a01:111:e400:2c2a::37) 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; Thu, 2 Feb 2017 00:59:04 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) 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.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 BY2FFO11FD018.mail.protection.outlook.com (10.1.14.106) 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:04 +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 CD.7C.65426.47182985; Wed, 1 Feb 2017 16:46:44 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Wed, 1 Feb 2017 16:58:57 -0800 X-AuditID: 0ac94369-b62949800001ff92-3d-589281748332 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 75.73.16817.15482985; Wed, 1 Feb 2017 16:58:57 -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 v2 34/36] target: Move target_remove_from_state_list() into target_release_cmd_kref() Date: Wed, 1 Feb 2017 16:58:51 -0800 Message-ID: <20170202005853.23456-35-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+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5kW5J46QIg6bT8hb7Zz1jsvj6fzqL xcrVR5ksWpe+ZXJg8dh9s4HN4/2+q2wem09Xe3zeJBfAEsVlk5Kak1mWWqRvl8CV8WT2A7aC NfwVjybdY2tgfMvTxcjJISFgIjF14l1mEFtIYCmTxLSTll2MXED2VkaJlvNt7DBFZ/f2s0Ek NjNKvOuYzgiSYBMwkvj2fiYLiC0iYCDxu/cCI0gRs0AHo8T8nmesIAlhgVSJF4ufAhVxcLAI qEgcWhYOEuYVcJB42HWaGWKBvMSutotg5ZxA8cXHIWYKCdhLfPtzlAVkpoRAG6vEl99HWSGa BSVOznwCVsQsICFx8MULqBfUJU4umc80gVFoFpKyWUjKFjAyrWIUy83MKc5NTy0wNNUrTsxL ySzO1kvOz93ECAnszB2Md594H2IU4GBU4uEVEJkUIcSaWFZcmXuIUYKDWUmE1xcYF0K8KYmV ValF+fFFpTmpxYcYpTlYlMR5X73qjxASSE8sSc1OTS1ILYLJMnFwSjUw7tCUMfF5fHWn+60M jtn1vk+szv1Zv8nRRSIqouL6xbo8z8qIFVWvF9tWvtzoNd1/zaUl1wVkozhsW6av+p7LE963 bc8s1gUV4v2hfyd6yphsMt0wxeSNGn/A5PcW0gv7L/+fueLUWV3++4Fbbs69c/jhq2L5TbPC AwLev6/KWPZl4brnLIvurVBiKc5INNRiLipOBADDMntAaAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGJMWRmVeSWpSXmKPExsXCtZEjRTewZVKEwZpP6hb7Zz1jsjj4s43R 4uv/6SwWK1cfZbJoXfqWyYHVY/fNBjaP9/uusnlMW3OeyWPz6WqPz5vkAlijuGxSUnMyy1KL 9O0SuDKezH7AVrCGv+LRpHtsDYxveboYOTkkBEwkzu7tZ+ti5OIQEtjIKDHp7CFmkASbgJHE t/czWUBsEQEDid+9FxhBipgFuhglNp05xQ6SEBZIlXix+ClYEYuAqsTOS9fBmnkFHCR2T97A BLFBXmJX20VWEJsTKL74OMRQIQF7iW9/jrJMYORewMiwilEsNzOnODc9s8DQUK84MS8lszhb Lzk/dxMjOCQ4I3cwPp1ofoiRiYNTqoExdIbj8Um5Li77dSvq0yTPG2RLZNnccOWt/5Cbavl2 4fK2nv+dP7//u8q/M0H0fev/EwZeaSnrduSe2nhbf+GLNaFXLny98pMlcZWl7KtUq+V6qxZV W8jO4CnXd5u1oy7kZ39k2qv1RquPR38V83R9Zyz5Va7o3hGGE/9UhdfM+1TjqMc6cWOuEktx RqKhFnNRcSIAq6Tg4LkBAAA= 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.21; 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)(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:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD018; 1:A8GVT7XHPZ3/8vsJeBs7N7P2v907xK+plYqZ7EMlgudmbyX4IM5cUT/AId6kfyhTECBF3DfY6BM/lA4qdWp7zhlOf/WgXDWyvqOmivf7n6+1JRSwY/h1ElfOygFn8oH5Xg8jDjT0kzapIOwoo2o7u1U7TBJAG1BG2/Y4uplj6IMoJgZnhQsUtTeL+6b/3qq73tuRO2M/8l5LFEMBrq67FoMO3Fxn451lwfMU7KZiJin7rYhgpFZVUUQMO23dZENaMCJ0on9PMfUfsx/6q1Lu76CSRvMxlUEj/Yw6iN8V7Bf8bWL4w5wy7nMLA/DPoiMML44UaI01D7UjSa+nfMVdoD0qxb1n7tUmlb3lS6SZPEDGUDLWOkaNROzEsGVi26wzynhnClf+qUWKnHSIG0R6rKGmwatzeB2hmKkj2S9AUYohUvxDaYw6jPEny0cslKQDDnBAB+jYIEoPgoaeYo9Vi5rru1pFAKg4xn2KSKptmnrZEApmAIe469/WZhB2tJo4 X-MS-Office365-Filtering-Correlation-Id: 858b1070-8a3b-4edd-98ed-08d44b06af1a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CO1PR02MB047; X-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outlook.com> 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:ok+J4xd9JZ+0ywzwTFtUhHbSeVGJp3FeSHeBBp1rlkQAL/pDL+PRis+IBbzJRoW9Dw40PAjJJ8B+KScJjoYXXCUdyvTXBd3is7QmNg+1rnwhxCLzBSJ8Wi0xQ4S6+m4/+NvSy5uIHSKhm4YNHdtxrt/rYkS9RG8/Q/A65qYn1fVIRp+9HZgXGtZ4vTW1ZIdQ/KY+Tqau4Jv3gNEaQFL2az8u2m0NHv2sbqNnU7puSQ9d4QW1hu1eM1QHlGl6G+HyIjiy8hWnsOTVUSQ4I7qOmBjIG67lmnJ0bREReU8mQjw6Q3CopDJEkLDSaoQPw2R3t8mu9fTP6UDnQrheT+aHhXW5OlpKr4RVy8w2EhPtudiKkeNVWPGFAXxaUBhP4nJxaUa+VWGRiymQa7HzJZjt0ux5Vo6ZBbZJMn+TULGQlRW4lUIVkWSEOBKsqq4C3rTQmHcY/PK6GupipkqvOoTXpHUBGOGYSjBiLce4VsRsIUYkvKechMinDSVb5xwgfq3vFgw9WQa2Mfjia5aZBmu6VNeWHzMS53tcsCO8Y3ROpvhLXYnRXDyxK/l4koh97T7bEqE3KIcHTJuoH8wG0F5Ih0qwDtfmYiZqV+hxtcMpKa2Z1iGnrmO6t1Sl/X6FFdgev096+AtMbBVUIudAw+LyK737s8KpLPinLAifLK2lV2DCX+kAkIx5LA67qASIJlJoo7/onkDHb+4JERaM7YB8Cw== X-Forefront-PRVS: 02065A9E77 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1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3amfW2235DtNsaCUispQcR9NmHPY7K9gnfCUp7qVqSnM248M8Ng+I=; 24:kNXeZKysPLrdKPpIkiKfN2AkLDQ3fGq1Y28dh+a//fcVmyH6oKx42OlgieJwaCvPn5y4QEzrL+B7pptj58K2fCe7chVZNNQulvYssPqDvO4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB047; 7:B/zlkfJyN3nXTOihiID62W6ZIW8HotxZdvb3RwpjVjh0JoDeEl8autoF6H2o6kCjNISOq7Y27Vak4czrE8pCg/8GlcEIwkf14Hj5gcB6pwVpQGtjTbWo2mvZJpR2jd851DmBfdDAqyS1c47+f+IqTedDDFLFwdquK+Wfkm+NJ7Pwx38FIqT2DS9ahsi5uWP6RFIunAqvJwX0Sfa3yGgbz4mpnzbc1/+Bz29BcsJvmD9erFTHe6/j/ZDWB7IWprEUvSneaP8jWaZQTeAg8t/PFjjo0k894HJDc6j5JiLcVWlg24jb0abqzl1i4wlzy/msOZcOMakvwVdlqjEB4CJcURSD+VaBV5P0CRWnMqeq6qmYi7meg3aIcimNMTdshKnaE4Y9oxyr/k7N6qJcn7S7p+c873gObXB7TquklfVh9rjVCcJOTnD64y0KZzd6wqC87f7aMjPEXnU4U2xWGeN16u4N1fVUa35umYZ/UZLnDa0bmGz3lNps9EXhG9bZx/XqrzBp8JWnumQI9qwChetCle32DvV1caea59MQ7jiXu6Kq7nzvDPDMBqd9rsTHpAZp X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2017 00:59:04.5413 (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: CO1PR02MB047 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 |
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 59d27ec8a872..9d1f4734c950 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -602,8 +602,6 @@ static int transport_cmd_check_stop_to_fabric(struct se_cmd *cmd) { unsigned long flags; - target_remove_from_state_list(cmd); - spin_lock_irqsave(&cmd->t_state_lock, flags); /* * Determine if frontend context caller is requesting the stopping of @@ -2475,13 +2473,6 @@ int transport_generic_free_cmd(struct se_cmd *cmd, int wait_for_tasks) } else { if (wait_for_tasks) target_wait_free_cmd(cmd); - /* - * Handle WRITE failure case where transport_generic_new_cmd() - * has already added se_cmd to state_list, but fabric has - * failed command before I/O submission. - */ - if (cmd->state_active) - target_remove_from_state_list(cmd); } BUG_ON(!cmd->se_tfo); return target_put_sess_cmd(cmd); @@ -2542,6 +2533,8 @@ static void target_release_cmd_kref(struct kref *kref) struct se_session *se_sess = se_cmd->se_sess; unsigned long flags; + target_remove_from_state_list(se_cmd); + if (se_cmd->lun_ref_active) percpu_ref_put(&se_cmd->se_lun->lun_ref);