From patchwork Thu Feb 2 00:58:24 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: 9550889 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 BDCD760236 for ; Thu, 2 Feb 2017 00:59:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A93302844A for ; Thu, 2 Feb 2017 00:59:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9353A2845B; Thu, 2 Feb 2017 00:59:12 +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 E6C1828456 for ; Thu, 2 Feb 2017 00:59:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751412AbdBBA7L (ORCPT ); Wed, 1 Feb 2017 19:59:11 -0500 Received: from mail-by2nam03on0069.outbound.protection.outlook.com ([104.47.42.69]:19376 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751287AbdBBA7E (ORCPT ); Wed, 1 Feb 2017 19:59:04 -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=WGj0Ssd+CurTcorB4MKzBSiSJa230Dzx+bhORBMmCwc=; b=huQG8jk/FMsFFoSWUwB6xMU8Xf1Oz3sC5ETBHfpJZmJvEaSXMc94hM49W5dxYfIA5PsVZ2H063kh3vcnOEyHHMw6VMkmjsaDZ1jYp+jpl9kOkbVz1/aeyO3+yZYZNuIFe9UD1ApXXQInGbO3d+RxzXDkK+ISXCYsuczAyrKGJJc= Received: from BN6PR02CA0060.namprd02.prod.outlook.com (10.175.94.150) by BY2PR02MB1410.namprd02.prod.outlook.com (10.162.80.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Thu, 2 Feb 2017 00:59:03 +0000 Received: from BL2FFO11FD022.protection.gbl (2a01:111:f400:7c09::173) by BN6PR02CA0060.outlook.office365.com (2603:10b6:404:f9::22) 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; Thu, 2 Feb 2017 00:59:03 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; cavium.com; dkim=none (message not signed) header.d=none;cavium.com; dmarc=bestguesspass action=none header.from=sandisk.com;cavium.com; dkim=none (message not signed) header.d=none; 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 BL2FFO11FD022.mail.protection.outlook.com (10.173.161.101) 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:02 +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 0A.BC.01420.D0282985; Wed, 1 Feb 2017 16:49:18 -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, 1 Feb 2017 16:58:57 -0800 X-AuditID: 0ac94371-46bff7000001058c-9b-5892820dbf0d Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 8C.63.16817.05482985; Wed, 1 Feb 2017 16:58:56 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: , Himanshu Madhani , Giridhar Malavali Subject: [PATCH v2 07/36] target: Make core_tmr_abort_task() consider all commands Date: Wed, 1 Feb 2017 16:58:24 -0800 Message-ID: <20170202005853.23456-8-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+NgFjrOLMWRmVeSWpSXmKPExsXCddJ5kS5f06QIg0tdMhZ7Hpxjs7iwp5vR onXpWyYHZo8ZvxexeHzeJBfAFMVlk5Kak1mWWqRvl8CV0b9mE1vBYZ6KzkkL2BoYr3F1MXJy SAiYSEz/voOli5GLQ0hgKZNEz9vrjCAJIYGtjBIda4Jhio7OuskKUbSZUeLqvZVMIAk2ASOJ b+9nsoDYIgIGEr97L4A1Mwt0MErM+BoLYgsLBEk8OfKAGcRmEVCRaP61CMzmFbCXOHLoBSPE AnmJXW0XWUFsTgEHicXHIWYKAdV8+3MU7DoJgdcsEt/PzGSCaBaUODnzCQvEMgmJgy9eMEM0 qEucXDKfaQKj0CwkZbOQlC1gZFrFKJabmVOcm55aYGiiV5yYl5JZnK2XnJ+7iRESvIU7GF/f 9j7EKMDBqMTDKyAyKUKINbGsuDL3EKMEB7OSCK9vI1CINyWxsiq1KD++qDQntfgQozQHi5I4 b+vr/gghgfTEktTs1NSC1CKYLBMHp1QDo73wr8nBxQUGi6a7i6eXbOe99P3g/r0Jcx1fvvR2 Dg1flrjoYEbWh+BotyB3o+d3zyp0uzY8eX/106qqb02Vnqr8EyeWMvhtz/x1SaaFNV+KQf+A 3Eznx2qtC3niSxOvTp60Ms/pUVp7dVXS4wd/BafsXLj0ZFlczsrp3NervsvHbznFfljrqhJL cUaioRZzUXEiAFSjeE9aAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBJMWRmVeSWpSXmKPExsXCtZEjRTegZVKEwcrX5hYHf7YxWux5cI7N 4sKebkaL1qVvmRxYPGb8XsTiMW3NeSaPz5vkApijuGxSUnMyy1KL9O0SuDL612xiKzjMU9E5 aQFbA+M1ri5GTg4JAROJo7NusnYxcnEICWxklHg/5QUzSIJNwEji2/uZLCC2iICBxO/eC4wg RcwCbYwS57c/BksICwRJPDnyAKyBRUBV4vTyI2A2r4C9RGfPdGaIDfISu9ousoLYnAIOEouP QwwVAqr59ucoywRG7gWMDKsYxXIzc4pz0zMLDA31ihPzUjKLs/WS83M3MYL9zhm5g/HpRPND jEwcnFINjExHpUwETt8qyErPrwtn4GM8e79KiNfvNJNu4qPdiafeKHjea66af+ybb5O97i7P l5zcLz6nqlx0eyrjeL2YMUQ472pS6t4ojumOjFe+tUu+1ZO4MV+872ZA8ocFR259n7x44+8P i5gUuzMjRG4xmHIrLtkQePcpc+l6o1OnuJ6vKeF7+iHllBJLcUaioRZzUXEiAOQ/7JWrAQAA MIME-Version: 1.0 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)(39410400002)(39850400002)(39860400002)(39450400003)(39840400002)(2980300002)(438002)(199003)(189002)(305945005)(69596002)(356003)(77096006)(92566002)(1076002)(2270400002)(48376002)(2906002)(5003940100001)(38730400001)(54906002)(50466002)(110136003)(47776003)(2950100002)(4326007)(53936002)(97736004)(106466001)(189998001)(33646002)(6200100001)(50986999)(6666003)(76176999)(1691005)(626004)(50226002)(8676002)(86362001)(68736007)(7049001)(5660300001)(6862003)(81166006)(36756003)(8936002)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB1410; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD022; 1:n69445lWOiA0DFkCk23uiw2QtuDx5mdgc1WpLuef+fEurcAMlPvs4SLYoP8ALc/0NajEcmiRBt4bKFFvnL43eyyXFmQChDYsm9xeuzUcrEcMs9o4IbXsMmzk22YZre7/LwGlS8oxHVM+INvGgRSleZXIEjFVq4QyLSIq39y1M8LAqf6oBMZiS6VgUdrhOn5XbkOPD/Msb3BUt/61sTWxp+QPPpm/JF8pV1qAP8oyzN6u3BhWV+Y12hR9QlvlElrAiSYuBE/JzRq3CYgdIX2TgOK3KNhAUnRgZBEkfLM/MgdbaAM1ZU8qbu3kslkl0BRSUbz47puR3dyejdlD2tc6N+VZcO9OvQMVLBWWf/3+t5HDoMqS2RmlPnwN1ifsBXFndqIGtu/TKmj/7so5S6B3XHG53CP5vQFn3wEM/URVe3bPCqYFm1FvnqdiruP7jjn0bFbUjAqXv/1R7ACMzvF/BgMRSW5nO427UiKFZJJbZpeI5DjhuC6zAcqDY+vOsWUA X-MS-Office365-Filtering-Correlation-Id: 9100a5f0-b7a7-4bab-a69f-08d44b06ae2f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB1410; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1410; 3:vooXY7FkAjgJjfzHQ38lRMS8XNYQqeOl7rmrnze3t6fuSnBKARTuv1eK40VDqoLl1YwVKSxOeRM5KncVYO76hXv72ATjwKEp5z8osOJ4D3iEAFppVvV9BuQrMUnbMh55DaRLdTbknhqBrYfr6RCuFWXnom8J1oIvvi/Ea//72wQuR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BEEEYA45jjKw9GCdSVh4fadm6lOhDRBKutmuU4tyOLUr8eIUAzUORs2vIpmfpto8UB7KH1dDyEfkqn5jw80hCgmq51DO7KiT7tuW57cBkHLEF3pZVY00+2EBF7xS1svjVu+C0hZCF0TK7WhfgQjxBqZBvpIpj626eZ4ivVqYzQBxCI9mF2+TJyD6IryYMlZkGhR7fDrVZK5ayJf9Ph/8CP5BwEw98JizO0KtNTYld1/Pnv6h8Pq4lD0T6/MBBqurZOaHg==; 20:AQ8Q2H0tGDetR0NyvsDNbLGZE2a5ZAUyGeyIolZ894lu7lG0ZaLZuTibCr3i/B1/b7tWdMOZ7mr6GI6ae0qagsehnLNfCfpwByj4zp/mg2q9qJPPU2VSQ1rgTvhxG4UQ7HQhk5JfcNWLSWwH7hcEE107bIYaESs87N4iyv6vZjJHhT3+AWAPB8Xy0V7ZgGEN6uPQZuLklgQcGo6wCtFzVZdWnoDl3Spq90hSyx1oXvs4q1NMnb4c+pUuJkiLdvHGDxMmsjeAGBGDD7AxdFhhnuudoyLyvauSHK5lGbFrefCYs6X+pjVWF7u7zeJFExVaY7dY73ZVpM50xKwFUAFnmZ5z/kAjtOdtaZ9sAn9MMAv98ITrztdbzgmJSGzfry4wPZe656Q/vDICjfYmEQrffTuV4IRwEXttiR8/5kD2vDl8lSiuWBwks47osqLcv7URaZFwoy6t25l02MPgbO3UCVkrLPPWWlWFek2yccG2nSLp5TJDBzMW4gFf2vtsJnuc 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)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(20161123558025)(6072148); SRVR:BY2PR02MB1410; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB1410; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1410; 4:uAwWnqtXd582q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Aq1nBP3vJX7U?= =?us-ascii?Q?BVe1gT+inL6uTYn5TYrGYny5yVFjylhlezzEqB70gzI3HAxhqTv2XMdfOsFw?= =?us-ascii?Q?iifuORME09qeXp1g3M0qImpPka48irWGKrR7Caxni4CEOygK43eIhesfw=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1410; 6:2F0l9nLVIhpS7mTk+qLCMdaFZZYVcGFF5L02fJAoa7EYOdOWVQ8uqVXzCFRsFJXIvoGpSG4ObzxV+XY40L+0QnFFzFm4f3eYqxGTLqgkPa/cPSY3/XyIgi9Szl6OG/aKpjlkKTp7cQeN07oryIGY/cEF70As87n/pwiQ1acH92rUdWt/v1LdVyCZ4It5puOOUxG4djb196Q6kTyQ+WyHKrawIatOcKTFMpzBj6G5PyOJIgOkf/rz9MhuLjH4l1F6kRTgdBZ3o40UOtPTsn3qYWrHVoMOSRv8dZSGIP+LiJhOEE1l7pOtGQ4kKMB150V+eL4qWy70GAQZaYjrqO2jkh0rN+j1paFi1SLD9fprrmbxefwYWRZO562Du0mOVoh9NIxel8amYTNh9H8IGkyNLtg0IIbT3Tsf9mU7dNwjFaeJwYZkg/gU3ALXBJ4P0UIK; 5:gI0B8xmGIKBQK3Lrye1+ktoU5ARBL6Jg8eqZkXglLxHTeMRM7c5nv/xxeFwxHWo7DX3bJG1RAuNhgBVTQlF56Zl33PMG40zKjlCJpbGxf4UZQf1r9rFOVlBnoVsjxPs4c2m8rzFDw9decJQrnN7pLY+ElDC7IiYpInJxG0v+kGY=; 24:yl5gNOjaJPboRdbGWGHRIge494A/gh0ewLh/0cffitTFs3uHchbd+OrnXTzvwGdhKrFyea0BQai3BxF3VY02mJyiW5LFch18A2fKaYaH598= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1410; 7:Y32u8njWsliTxoMTz55HKn98hcaQTdVWeN1HzT8E4E7ew41NmMMLRFLT2it/PzKcOoPlpe39pGmoxqQVoCMt85rVbzRaLAeieQsnh6j5XSCwAw5a+WhYbSJ9HOP3qUvhJGEiDpWKRT5Gs4us2500MwIgEIswZwi3ClUJCZjJf6Sr6uAMcrJui7Nt/rWkAlA4Rcgra0cHaEzAAc95nHKd/8B/6IlOfCKHwdgSFl0wArsqHiWcL/Tg85mxH2LeYKWvl/NTF4wNhvOr4ph2gWBGRs3AGvCPLXpe0M77iFxGMRTmtDT8L7++8BkTKr+NveBsowss3ThkAASQGAkXnJYmwu6WxTCN+uhIIza+EKMKRdkiz9XRv9Mghbw4zwLyJXkace70/XSnoPD5/kW5NV92/0Aeez60dneBAPdIwRPvbXK5HgZDnrmYXJ3Yvshat9PgL/5eB89JzQXpNEQi7Sm6ITkIr5wlsS5AbtEYSPuTigEwbm6AXiezOXk2nvpBMtQRKVmEh1xqDRaxswp8E/LFzH7jSAnqSpqpz0EYcYNol2LaYdl6NRMMHA/MS9qLoA7o X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2017 00:59:02.6739 (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: BY2PR02MB1410 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 It is possible that two commands with the same tag are present on sess_cmd_list because commands are removed from sess_cmd_list after a response has been sent to the initiator. Hence continue searching through sess_cmd_list even if a matching tag has already been found. Signed-off-by: Bart Van Assche Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig Cc: Himanshu Madhani Cc: Giridhar Malavali --- drivers/target/target_core_tmr.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c index 4f229e711e1c..311dc3c2f1dc 100644 --- a/drivers/target/target_core_tmr.c +++ b/drivers/target/target_core_tmr.c @@ -175,10 +175,9 @@ void core_tmr_abort_task( printk("ABORT_TASK: Found referenced %s task_tag: %llu\n", se_cmd->se_tfo->get_fabric_name(), ref_tag); - if (!__target_check_io_state(se_cmd, se_sess, 0)) { - spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); - goto out; - } + if (!__target_check_io_state(se_cmd, se_sess, 0)) + continue; + list_del_init(&se_cmd->se_cmd_list); spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); @@ -195,7 +194,6 @@ void core_tmr_abort_task( } spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); -out: printk("ABORT_TASK: Sending TMR_TASK_DOES_NOT_EXIST for ref_tag: %lld\n", tmr->ref_task_tag); tmr->response = TMR_TASK_DOES_NOT_EXIST;