Message ID | 20170523234854.21452-33-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | New, archived |
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 231936037F for <patchwork-target-devel@patchwork.kernel.org>; Tue, 23 May 2017 23:50:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1676F28818 for <patchwork-target-devel@patchwork.kernel.org>; Tue, 23 May 2017 23:50:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B1C828854; Tue, 23 May 2017 23:50:06 +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 4D7A828846 for <patchwork-target-devel@patchwork.kernel.org>; Tue, 23 May 2017 23:50:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031237AbdEWXuE (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Tue, 23 May 2017 19:50:04 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:4537 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031513AbdEWXtr (ORCPT <rfc822;target-devel@vger.kernel.org>); Tue, 23 May 2017 19:49:47 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="122509197" Received: from mail-bn3nam01lp0180.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.180]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2017 07:49:10 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ilxhmEmYdHVeDr+lr025xx/bvNP5Et9RpTTMotq8rY8=; b=pS1mULuk4+1V7AqbqEoYOPrEN2EyBrV4dVN4izH3h22YEfxXRwsHLd0/fAxYpoblmNTWMKwT4MZRGkKjTNXiXABMh8DKPZZHBL2Kacvyplx38jqZTGiiqSAqIoLxl86DY6CyXj0SWzsJW0WlBSacUjeznR/3aXyLXU1ukT3j+08= Received: from BN3PR0401CA0014.namprd04.prod.outlook.com (10.162.159.152) by DM5PR04MB0508.namprd04.prod.outlook.com (10.173.170.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Tue, 23 May 2017 23:49:09 +0000 Received: from BN3NAM04FT010.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::208) by BN3PR0401CA0014.outlook.office365.com (2a01:111:e400:51d1::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Tue, 23 May 2017 23:49:09 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; cavium.com; dkim=none (message not signed) header.d=none;cavium.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 BN3NAM04FT010.mail.protection.outlook.com (10.152.92.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1075.5 via Frontend Transport; Tue, 23 May 2017 23:49:08 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) by (Symantec Messaging Gateway) with SMTP id A0.E1.45291.17AC4295; Tue, 23 May 2017 16:49:05 -0700 (PDT) Received: from milsmgip12.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; Tue, 23 May 2017 16:48:59 -0700 X-AuditID: 0ac94369-166ac9800001b0eb-1a-5924ca7103be Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 45.03.18148.B6AC4295; Tue, 23 May 2017 16:48:59 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Nicholas Bellinger <nab@linux-iscsi.org> CC: <target-devel@vger.kernel.org>, Bart Van Assche <bart.vanassche@sandisk.com>, Himanshu Madhani <himanshu.madhani@cavium.com>, Quinn Tran <quinn.tran@cavium.com>, Hannes Reinecke <hare@suse.com>, Christoph Hellwig <hch@lst.de>, Andy Grover <agrover@redhat.com>, "David Disseldorp" <ddiss@suse.de> Subject: [PATCH 32/33] tcm_qla2xxx: Simplify tcm_qla2xxx_aborted_task() Date: Tue, 23 May 2017 16:48:53 -0700 Message-ID: <20170523234854.21452-33-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170523234854.21452-1-bart.vanassche@sandisk.com> References: <20170523234854.21452-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRmVeSWpSXmKPExsXCddJ5kW7hKZVIg5Y7Fhb7Zz1jsvj6fzqL xYI3e9ksVq4+ymRxYU83o0Xb6jOMFj/bXzNatC59y+TA4THj9yIWj/vbjzB57L7ZwObxft9V No/1W66yeGw+Xe3xeZNcAHsUl01Kak5mWWqRvl0CV8avwx+ZCiaLVqxd+I6lgfGLY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XOK9a7HttKNbhA+ZuAZtTWD81j359PF2fkPuVRzJOVwPl2VY 3hBpvvhLeYaE2urJ7TevbPOQXr9r+jqRLQ5/JaqjPK4LdT2R/L06frZMnubij4e6m5jOLem7 Z2mn9s2lfcMy3qvHv1R7xxnPKRI2vbMszVZ3gVlyY53VKY9D9kosxRmJhlrMRcWJAOZrWVTa AQAA 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:(10019020)(6009001)(39410400002)(39400400002)(39850400002)(39860400002)(39450400003)(39840400002)(2980300002)(438002)(189002)(199003)(9170700003)(50986999)(48376002)(36756003)(33646002)(47776003)(1076002)(76176999)(38730400002)(106466001)(2906002)(5003940100001)(50466002)(189998001)(4326008)(54906002)(110136004)(77096006)(86362001)(6916009)(305945005)(6666003)(2950100002)(356003)(72206003)(8936002)(478600001)(5660300001)(81166006)(8676002)(50226002)(53936002)(15760500002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0508; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT010; 1:RDAps/HcZ95v6FscQkSp8v8yPtgSyEbo3Nw//qmYwsqoQ6AQZbCkFQQKz3VrgHKpDP76ifSIJLXMEpNpsY//MtyCuM2W5QVrWvPqRtogaInzZu3rPapFP8jXlA7qHNKE/SpAD/GCNB7MUMzbECp7vWE/nUUWQxpYZVL8gnLzXHjj0C+xj1LvIH6iP9hCMRoouws8MEk1H3xPwc9Ou034VM25lEE6WGXNAhzMT2ZKkvP/lbEdgJMs4gAKtHDPWkX6X4Cg67/oIEyaeEpwWUMEtsDOw0MZEwvfnhZgCkHIubp5elNId82rGYJRGZawb+C/w5xGsTMmWPC3LZoC4qIx3v/F10dWnko728cR5F1bscw0Sh77KAfIoBB3zMNgxt/Ge2q6NI4cYSzwk4230qWJhMs05YGtqKm1UEHbCtjMiDyQeXG/ny2Hyftg1266G2uXtHZGwl33/5jYNuvd4nIq7KTlGKCjnXGL2PwTW3qBVTqCU5h4jXyUgW74ap++oVbyHFHoD8+furOpFbJLurrYYMRTGl9arF3nriNPJCKLXSQ= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0508: X-MS-Office365-Filtering-Correlation-Id: 9c155d78-6d1a-4c58-7226-08d4a2364e35 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0508; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 3:ap443YINmTIYc46VIhOt07XK4VZqwX4BTsnkB0UF0X6xo2ZOAaZ5qa6LiCF2gvJ2v8QHQBX+t3a5bzXmFc9sv2hcYDxRWLdd5ooVlaMZ918QMHu8zuHVoTQOXm0sdTMrxo3LcFEde5yvuS010+iNIC7w1h46RbZlZuFvVdNWt/cKp7knImggVtl3eKt3x//qyIpYT1R1Bz4z7aqD5puDsJb9wpFjjYazSUc1jrpQFJiq1oiSPTkE5UhxxRO30jB61B2wQh0anYjbIhTUehPnqSULoE7jn/+WDBsKjA6QGPhrck/3RUxmyxiH7omL1+jVFZz8pKwjFfNKmPBlzfECbL6WkgUL1jxD5JqaVHLkVC/uWn0aGCSIjiAwnjFwXyR0ULRoe5/jr0VhuiSq+ReXp7twYpsJKfZYZsNBZB/gzC62O+XrXu+CKKBsgtaApn24HwxQgkhlAOq0L4Krh4RWmmmF+qDuBLRDo5GS6sj7YQ2EFhUpnLB0RGIgqW5LrYt+ X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 25:KZKvHPKA/bcybrTkZGyxp2WhegPygloArG+wxCx5l7Un0TeycS8hVvG4J8msDqve4RivDszj0N8ELhnNDm2KeZD7Hcmj+8kPm4q+bgRqTkTgLuFe+CXj05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g7jC1wgF08s0QvZu0nOSoa+3+u8dZQrsuaFhmN3sbkAKhkVd+oSds+VRY040tFRSl5yIIue7w/jVNQT9wmuiNoh6SQNG7fmfxAgFDJ0imubUFGwgRe2bdO+2QfWkCIhnQ9rXYgK7u9bN2 X-Microsoft-Antispam-PRVS: <DM5PR04MB05089FCC7872EA7FF7F095CC81F90@DM5PR04MB0508.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(13016025)(13018025)(8121501046)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123558100)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148); SRVR:DM5PR04MB0508; BCL:0; PCL:0; RULEID:; SRVR:DM5PR04MB0508; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 4:ivKtE2cO/aJG1UWfySX6Yygcsuj7HJ2f5zvtBrlQ1Fq4i+mLESoqDTcBFu54LGvNM9RpUNw+yXG3Ew5arDGjRaAGhJu+/IOCh4udYpK2m8mCRNi6+TM+2uu+T9lhJPzTDHAlqLBNPLbJ609dYyZ5eOznWjGAcFlI6jQ8KbCWokBmxDHaVdlpL6KJPLPNHu5CmVb4LQ3ShBlgf6Sj8PyJn5n9CfkrYk0knyoaCZVEFh/xKgl2Dy65wSRL+9ctC6zEAlto6uQi5r1yKoXh1BnO/NpW1MQjMwPMLxNhKYT8dIpFaUaadfCPToQHq4sgd68xPFLpQKh5Vp7hmXk7E9GigagBo490iQcjDaSS/9HI7qoBuRL9Qx5oYPR9c6W0OyxjZ3oo6Ms/LrYp/qPwMOO02LK1xmcPfXAQ/0fm3SmAExkK56mDwNS4b8wfC9Ze1LkD1716o33RJXKDp3Tqqiy1WZlK5Js/VO15S9y26Cl0MngRgxZJdfyTrs4e7WaKXadDNDHG5S93w+YhhTJzar2WCl9pE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0SJflig9jVpZhKCNIu00w6UVsE4FJsNlhmgkm/kzw7Ay5Y= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2017 23:49:08.3110 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR04MB0508 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/scsi/qla2xxx/qla_target.h b/drivers/scsi/qla2xxx/qla_target.h index d1a039f1ad97..f4c8dc9f3402 100644 --- a/drivers/scsi/qla2xxx/qla_target.h +++ b/drivers/scsi/qla2xxx/qla_target.h @@ -878,7 +878,6 @@ struct qla_tgt_cmd { unsigned int cmd_in_wq:1; unsigned int aborted:1; unsigned int data_work:1; - unsigned int data_work_free:1; struct scatterlist *sg; /* cmd data buffer SG vector */ int sg_cnt; /* SG segments count */ diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c b/drivers/scsi/qla2xxx/tcm_qla2xxx.c index 25ca44f2fb40..22fedbd55166 100644 --- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c +++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c @@ -493,7 +493,6 @@ static void tcm_qla2xxx_handle_data_work(struct work_struct *work) spin_lock_irqsave(&cmd->cmd_lock, flags); cmd->data_work = 1; if (cmd->aborted) { - cmd->data_work_free = 1; spin_unlock_irqrestore(&cmd->cmd_lock, flags); tcm_qla2xxx_free_cmd(cmd); @@ -734,31 +733,12 @@ static void tcm_qla2xxx_queue_tm_rsp(struct se_cmd *se_cmd) transport_generic_free_cmd(&mcmd->se_cmd, 0); } -#define DATA_WORK_NOT_FREE(_cmd) (_cmd->data_work && !_cmd->data_work_free) static void tcm_qla2xxx_aborted_task(struct se_cmd *se_cmd) { struct qla_tgt_cmd *cmd = container_of(se_cmd, struct qla_tgt_cmd, se_cmd); - unsigned long flags; - - if (qlt_abort_cmd(cmd)) - return; - - spin_lock_irqsave(&cmd->cmd_lock, flags); - if ((cmd->state == QLA_TGT_STATE_NEW)|| - ((cmd->state == QLA_TGT_STATE_DATA_IN) && - DATA_WORK_NOT_FREE(cmd))) { - cmd->data_work_free = 1; - spin_unlock_irqrestore(&cmd->cmd_lock, flags); - /* - * cmd has not reached fw, Use this trigger to free it. - */ - tcm_qla2xxx_free_cmd(cmd); - return; - } - spin_unlock_irqrestore(&cmd->cmd_lock, flags); - return; + WARN_ON_ONCE(qlt_abort_cmd(cmd) != 0); } static void tcm_qla2xxx_clear_sess_lookup(struct tcm_qla2xxx_lport *,
Every .aborted_task() call is followed by a call to .release_cmd(). Instead of letting tcm_qla2xxx_aborted_task() figure out the command state, wait until the target core calls tcm_qla2xxx_release_cmd() and free resources from within that function. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Himanshu Madhani <himanshu.madhani@cavium.com> Cc: Quinn Tran <quinn.tran@cavium.com> Cc: Hannes Reinecke <hare@suse.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Andy Grover <agrover@redhat.com> Cc: David Disseldorp <ddiss@suse.de> --- drivers/scsi/qla2xxx/qla_target.h | 1 - drivers/scsi/qla2xxx/tcm_qla2xxx.c | 22 +--------------------- 2 files changed, 1 insertion(+), 22 deletions(-)