Message ID | 20180607051926.27940-9-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-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 7F7AF60375 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 7 Jun 2018 05:19:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FC0E296DB for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 7 Jun 2018 05:19:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 644AA29865; Thu, 7 Jun 2018 05:19:52 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 300E2296DB for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 7 Jun 2018 05:19:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751353AbeFGFTt (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Thu, 7 Jun 2018 01:19:49 -0400 Received: from mail-dm3nam03on0087.outbound.protection.outlook.com ([104.47.41.87]:55526 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751491AbeFGFTk (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Thu, 7 Jun 2018 01:19:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tQqXwyAH2mZKwmm5qMcdlKIPFoRpnDJPTBola+xeO8g=; b=CKAJ7si3Rhx/M3hczGO41VAO36+6M4/u3Uh+w8cSpWLZTUqNwbh2aSNN1d31gtLdTX26/2Vijz72Iyp4Y7n7+Q3rMb8i4wpvN54YmmKz2WSAdS421BCVR4Yi1CxJqVjCeDATRQrti9Cez8iwazomv8qUtUbTGVeLqVrAJkK/o1A= Received: from DM5PR07CA0105.namprd07.prod.outlook.com (2603:10b6:4:ae::34) by CY4PR07MB2822.namprd07.prod.outlook.com (2603:10b6:903:25::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.11; Thu, 7 Jun 2018 05:19:38 +0000 Received: from CO1NAM05FT060.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::202) by DM5PR07CA0105.outlook.office365.com (2603:10b6:4:ae::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.841.15 via Frontend Transport; Thu, 7 Jun 2018 05:19:38 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT060.mail.protection.outlook.com (10.152.96.178) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.841.6 via Frontend Transport; Thu, 7 Jun 2018 05:19:38 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Wed, 6 Jun 2018 22:19:28 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w575JSN2028007; Wed, 6 Jun 2018 22:19:28 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w575JSs5028006; Wed, 6 Jun 2018 22:19:28 -0700 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <himanshu.madhani@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH 08/12] qla2xxx: Fix unintended Logout Date: Wed, 6 Jun 2018 22:19:22 -0700 Message-ID: <20180607051926.27940-9-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180607051926.27940-1-himanshu.madhani@cavium.com> References: <20180607051926.27940-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(346002)(396003)(376002)(2980300002)(438002)(199004)(189003)(26005)(69596002)(4326008)(48376002)(186003)(59450400001)(106002)(1076002)(51416003)(50466002)(86362001)(76176011)(80596001)(110136005)(44832011)(486006)(6666003)(5660300001)(476003)(2616005)(11346002)(336012)(81156014)(478600001)(8936002)(8676002)(87636003)(126002)(2906002)(47776003)(72206003)(54906003)(36756003)(305945005)(50226002)(16586007)(316002)(356003)(42186006)(446003)(81166006)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB2822; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Pass; LANG:en; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM05FT060; 1:XNDYK0fhu5xAV6t3Z3HACPL8yVuGFcCbDXn8br2lYj9am68mFiWZmzoV6UtRErAYh19eT1IqOpNiIygkDQJGZLv4sownN1+5x42vBTqQe6qOudACJdJxt+EWOGjKduTR X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:CY4PR07MB2822; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB2822; 3:S9lL298Wa9NFzKO0v/QeMEChdwbSueL8YsNMrIXTCNnCPtxCI5fcTA8JHiLq8esoNcFuAJJ5TISAFQMH7Iey4IQPlA8W90JAfPYnHv6YM+tzS6TfEjqlCUkwAeNwcrgbpk5ou2UE+XDw0MRYacBlPdS7GBnYWHHMeax/hP8L9tCsNFPNUgqLwv3ddHnf98dlzR3B4Pv7YlWT/xd3Ris2ae1zvUnCgQ1YDFec98OPGfk7lvHIh4UH+3t00CmGT547oqG45xvU+nEQs9I52xzyX/GQY6FeyhUZvUOz8+8MsYRj/5JRas/1yaKYq2QcCcHHPYiY9d3f7wCB+aWIXgHVjUvPn33VJm60BzbHiGZA4eM=; 25:fao3/tDE8dNIn+SvKPHtzX79w6ZCHt5S4DtPaSqrWSWIEiFpPHu1P+WGT8eNtRmfT9v6Q9V2bSj7m1ejeBWx7xVWmEM9OpAMvc0DvudT7Gg8PSdPWsacLJO8Wlb/k8oQ2xt3UPYUl/LYYtJS4DfZ1waYxW/J0dG7gVHr5Koyr6PpbH0k8Xja1iKiAsdomz3B+VwbRjdVfGkizDYonudcGBu8pYfhixNmfcyFd8bGKwv6uxe8R0KqVZ7RH8FGvisFiePDSoH1SwGnzEbTp0IxjTCfjkcoIDLbbuqp4XFEQn2kxcR+TX57jfl1oMjGylz/wn8Q6cWGImsnA+rnWeI4VQ== X-MS-TrafficTypeDiagnostic: CY4PR07MB2822: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB2822; 31:E6Q+bxYpUYWJkUnYVWmTkMzza3Tgra252+I3UGnSRUpdmi2tbLp2aEac4MgK4KIcLPvL4T22iGEJsZjLLRSCrB5iDSs09COabCSQZYNl1S+6XkBMHfBU9sUFfUcjGKOn7mpzO02OYZOpeN0QplnzL1VHvpCMYpvX3QnmqrDFfsEj+XloMa6lgfhAHwCpmAzUhOCMA/iXAnUas3Io5t1XJN+Uo5BWELDvfqY/VUMPP6E=; 20:k0B9wPUMdJGEflVcfg1iQn6cI76VSDtP9AO+JW6k69M5TITzHkiOXsDdD48Ealy4xoR9FfMUHyqgWCShYuh01c9vE54w5Fr7m7EOMwPaafKlZXaxpNfx/ss4TXTTVevGqbEY9biUsiT/gtux+/aH9IeBgFxapM8AU6tp+Ah8BUrd21N887R/RvEvwVzSSvB5D990f6BWjq+Yqcl1wu2I4K2b2EiEWwKvo/GeV68M0GIRCLINEY0VTveBoJ5hH+y8G1zt5kkUvK0WuFfYn8YYKzcdeczuBhwEzVsxo67/dBsvBXAPTrVf8tN/PdA/su5+HqVXw60EM47iDC7yhD3P3588AgDTKoMgvhyGOMTQ4zo5X72mJf8fGFFupPIDgM2UhyJyPhrfmU1HWjSsn44YRN87vV9/OHcbL/rL1jcxJhLgsjlxk7xaOi9xP3wxPzlKTjKVu242gW+ObQG/ShEvZN6U75ldSAXCaVJJuXaoUbUWM882iFUodTreFnJgkgU7 X-Microsoft-Antispam-PRVS: <CY4PR07MB2822984AE76BA482066B03D5F5640@CY4PR07MB2822.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93004095)(3002001)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:CY4PR07MB2822; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB2822; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB2822; 4:Y64hE24VuuRmDeYwJui7lAumoHmTWzOzrkq+AlMLttBzKlwQ71vjf5M9ld7+U29W2feKTG+zhqdLyI56TCqd+v2si6EeN989g95Q8KBSxK+nrNFhvIjVsxZuy8ceUpyW66ooIMot9KQ8qdFQ1tAUjFbna9cN6ImFPmRl8Xqt4mse8RxPCIeak1j5N3Qf64HEOPtVc/EborL41gNi8mSL2fDig1wQ4mwbqXWG6w8ziRObynjaueTg+DzwIrQTrhqdOb/ZlH6uG40TnK/1Gb3euQ== X-Forefront-PRVS: 06968FD8C4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB2822; 23:WQ+ojYWJB4ZXXZfu2E/9gMylzJVAG7hNTOcSu1fH+?= =?us-ascii?Q?ohFLhqwIWHfRk4zyXdgPhzRrWGWbgI7K3xC5PWam2rAlIAB+i3jAr9igTvIR?= =?us-ascii?Q?iyYNGfn7Pz6MFQ1ffRz2l4fGmDL61wkKhSzc9s6s1/dXGh6ZD6dC8+pnFHeu?= =?us-ascii?Q?BXV1I1XhdtBPTaASZH/QQ+VI72zBx8k8PcJCF5XbNx82Ixl7+l3+etWxPu7m?= =?us-ascii?Q?Q915Hh5cYQ3+Og4vjFkkFRjL207bFa5K+tWgOSzN/exqhRCedHQs6AMcSq4b?= =?us-ascii?Q?WQyyiiQX6K+mPsfFgUxxJg1jDMpsONZh13/iPfBpbMtVlLAoa7GmW88LvvOe?= =?us-ascii?Q?0s01p52PopyzEPrvLHsqUpKyRb1sAcugpBNuY4m9EIt2nhWR7ShFTWRe9zPs?= =?us-ascii?Q?QO/XE2NrtG12/4RQxceaMpSP91aEgbrU955RvamtG62r2ygdQUYsfAgZRpzc?= =?us-ascii?Q?G6COyb741Q95dOyQuhghriZJMohgu4dQFTTAOX1JlqPkDR6jb+caki5EMI92?= =?us-ascii?Q?pzo4nETeo9Wqx0hbjalQHglrJ7/MlLPODKVlegSG/w/86yYjALbaW0V83gmh?= =?us-ascii?Q?q9tcVMMt9BQMKn/vjJgQ4tKNX5A2F8HsqusGaay6PttHIxdt9As4Ru1xLW7A?= =?us-ascii?Q?mkkfEGSaaqjnW3ZdgIm/dJte1w/7xMgE/TRY3ML78lFbbCd6/8HXZNtqknYz?= =?us-ascii?Q?tvnMXgMmM8ZMmXAbXDM3k+iiNjuZPB7ZEO1MCLnomjB7VbuOKn2BAo2EHa02?= =?us-ascii?Q?osKCnBszCCx/sYM/wPtPZg2lJiRICKuWjH6VYizMF1W2FEPHOIq2Hh+ENi0u?= =?us-ascii?Q?l6m9o3njnJjFotyMXuYMGTchKk/TaCp9X5jbpz+9hxhOwkq7g7N36AGKUQBo?= =?us-ascii?Q?I/s5Kd+/fReNS0/B2qWJ35YBqDSrYQbv77cq6cIRFUvA3lpy889seN27iUsw?= =?us-ascii?Q?/Tx+LXtMTIB6hhBCssYEY9GCuWUhpLA0Fz7jRhcYV77Z2IiiY8vMIjft20dI?= =?us-ascii?Q?rcgLOQiMxe4crB6GjwU5jaTUPEgvpLsKhLK2oy5PCzb3Z3i2jnru850oEz1d?= =?us-ascii?Q?5IvCdYYi+4p06D56hXwMeKP3sSfJQdoquIijmgsB8xZvueLLUe4bANxUon2v?= =?us-ascii?Q?mBdKm2KAFANfD5vnkR5fSzIo+rXYa83?= X-Microsoft-Antispam-Message-Info: 6TGDUdBSwX2NS+scaztr4Y9d82/VxAGoLBWVWKP95g2bI8VJRU9pcbuJJMWPgjbUQLyFFFNzXLrqU5Xo+rEg90mfUnWfZcBd5i/bWtyiCcL2W2srI7Yq4RFFj2TFti1CIdc3tSdkfXpIIOj2bCl/otk5mgJ1j6rITDr6UVxRMhV9bunQD/5xTHO2mQmJDL3s X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB2822; 6:9jeo0WlrWWZteetNqK5Y3N6MRPTWrr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ering-Correlation-Id: 49277f6b-ace3-4df1-a338-08d5cc364403 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2018 05:19:38.1682 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 49277f6b-ace3-4df1-a338-08d5cc364403 X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB2822 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index c5c96e698799..d144719a96d6 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -986,8 +986,9 @@ void qlt_free_session_done(struct work_struct *work) logo.id = sess->d_id; logo.cmd_count = 0; + if (!own) + qlt_send_first_logo(vha, &logo); sess->send_els_logo = 0; - qlt_send_first_logo(vha, &logo); } if (sess->logout_on_delete && sess->loop_id != FC_NO_LOOP_ID) {