Message ID | 20180718212654.13325-9-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Changes Requested |
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 87E226053F for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 18 Jul 2018 21:27:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74BA129885 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 18 Jul 2018 21:27:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6637129A37; Wed, 18 Jul 2018 21:27:41 +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 03BDF29885 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 18 Jul 2018 21:27:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730234AbeGRWH0 (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 18 Jul 2018 18:07:26 -0400 Received: from mail-bn3nam01on0069.outbound.protection.outlook.com ([104.47.33.69]:64128 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729638AbeGRWH0 (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 18 Jul 2018 18:07:26 -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=Z/4unhEje3J2HfD3vGVBgY1gaxOzU1lGMRCtxspgxJYxS3zFb3NqYEXQpqv/HFKeGIQBDUszAvWuT5xgawGECPNQzVbrrSzjZAEYKeeYqsR1dETYU+M4MfP4F9c8uV/FqFLWilp5YDbwcAO0XsycH10+3BSzun24+EoFQV80qZM= Received: from DM5PR07CA0044.namprd07.prod.outlook.com (2603:10b6:3:16::30) by DM2PR0701MB1389.namprd07.prod.outlook.com (2a01:111:e400:5119::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.20; Wed, 18 Jul 2018 21:27:06 +0000 Received: from DM3NAM05FT029.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::208) by DM5PR07CA0044.outlook.office365.com (2603:10b6:3:16::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.973.16 via Frontend Transport; Wed, 18 Jul 2018 21:27:06 +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 DM3NAM05FT029.mail.protection.outlook.com (10.152.98.140) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.995.0 via Frontend Transport; Wed, 18 Jul 2018 21:27:06 +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, 18 Jul 2018 14:26:56 -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 w6ILQutp013392; Wed, 18 Jul 2018 14:26:56 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w6ILQu6x013391; Wed, 18 Jul 2018 14:26:56 -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, 18 Jul 2018 14:26:50 -0700 Message-ID: <20180718212654.13325-9-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180718212654.13325-1-himanshu.madhani@cavium.com> References: <20180718212654.13325-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)(136003)(346002)(376002)(396003)(39860400002)(2980300002)(438002)(199004)(189003)(186003)(8676002)(476003)(81156014)(76176011)(106002)(81166006)(2906002)(4326008)(26005)(305945005)(86362001)(50226002)(87636003)(126002)(2616005)(50466002)(356003)(8936002)(72206003)(36756003)(478600001)(48376002)(51416003)(42186006)(44832011)(80596001)(446003)(106466001)(11346002)(486006)(14444005)(1076002)(6666003)(16586007)(69596002)(5660300001)(110136005)(316002)(47776003)(54906003)(336012); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1389; 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; DM3NAM05FT029; 1:0uVcNesAzziw9P63w3YehxT9FQ8CSQb/LOaA56sm3Pw7sNjPFYF4aDjnlObLX0FXI9NI6BMrQS/cf1JLN+J4AlheU294qfZKhtXq+4hetWS+26mQOBvw7vfWYT6+rxtO X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 36d6dbf3-3303-4c9f-5271-08d5ecf5364d X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600067)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060); SRVR:DM2PR0701MB1389; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1389; 3:Xsyk8JARb6tv6JIirn088opABHHmYcUtYBjs/Gwr4UHRE0Xtk8Nn/xynuF3Z/KdvOYtgQHxP6PPmvTKx7xs59dEBkCfWupaAc0qsZpBgpl00gbgyawtFfbpEheF2MflsIdBoz4jUnj5k6BQujeCRuYrY3NSwzvTM4exjdAs8FVi3GFQgtW7cwZmTAA1jHzsSwOFa/nkFDIeA0Cyp5lOOVVhTFiuOsiiqD3VWeSipx/Gxgu16R27hjUJgMwgV38qRPUB2H6b6VBo5SOjJ+72IiG2jOjvGTR8rWJHG5hbJsXiSu53pN9OK6gOxXDNM84IEEk8a9WzOcgZV1brHq5fD+e4tw1La8oUbJgR+2sxF4MU=; 25:5dfTYhjlpJ21IylKQaMZh5ELb7cpLrMXYycuMC4nZ2lcJu2Hr73ON4hxusiffVcK6qiUH6OOILK1a11RRaxObNhxETtz6tJM/xHqHXLDKX6w6lzTc/HvC4plrCQT0x+E/Wz3TI9pV/45Z+zybbIcRxkQtjqavqa4mRhDNLC0X1n1uRMRDVSQGsWL6ZrC9T2ja367c1M1xEcOhOjemJVTkxsZjMquiWZadD5v2kpDwInpx1w5e0sEK3B6zvF8Rd//3eGzJvWMhP6LWiK3uvE3kK8mxa0Xb+51p0B/PVF9518YUkOeYqGreJ8vqOIkq4rubUQ1XWbjd3fPYD/fX6dpCQ== X-MS-TrafficTypeDiagnostic: DM2PR0701MB1389: X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1389; 31:QhRE5gYcDy+txS9W32xSa3MT4cHZfKbXV8DM2gaoIKvZscR6mLbFvelljuGBLJzcPkhQwBHmMi0y3me+aP3wl2Dz/+/bi/3gg+En4znH0FCnJQujlVTqi2m1LaU/SZSwiRSwtGa3+A3s+6Jg+Z1sMe2a9FDU/MyY8Ko5uAH/UxGUzSV6UE5UVmKZ7m1qyc6TQ/CC6Bf7lqT1CWnFiPzmnPnPTXPtZ69W6eXDRCwlyPI=; 20:YoOU43HWnUUkLhBguEBo7sfee2yPGMBtT4AY+4+In0E6pEA9JKwxetxxHIrG//Xtkv8qLK+AiV15FoXcGnRHRvCgfcUf6Pbokt4EjEbqjBxgsbZVlh0TWSzeaKD7Hut2rvG+bRAc2R5tZDLQu3/G+eCGyd15C2yT8isEETIzz5RiJwVjsXMZ0aTWwIYQUUpGL2lYv9ZBKm2qup8TV4tS0nXrw9sA3Y2N47nZqTyaRnBZ9JnFoITQF48pWojlkIjQ16RaX687OkhTt/LVKT8EnUAlWXdNn9c67WQ6Wh9mjb/psya7QUd6ZkXJsfTmJITlb9MPwBtMEiAwzVB7rJEGk/1z8aaPZL0gEzDPW+t3npHhFX85eFeVZ30ZLisWjRcm6crYXWbGzi4doCGaLc1buHKewDBv5O5u3DbYyVh24z2l/S5zMcq3g/q0Yr+4jUyXlxp42XYKKhfMMZeWxID+O5QzSaYTpYqu3E7vS+ypGl+0kraUpzKOI/u1Lf+83amm X-Microsoft-Antispam-PRVS: <DM2PR0701MB1389658F44EEE47D1071E1CEF5530@DM2PR0701MB1389.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)(3002001)(93006095)(93004095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:DM2PR0701MB1389; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB1389; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1389; 4:HrmOX/1lV5DcL1pmtkLprBMZ7yAHpW09+tR3dLng730/FF4J2IgqBa2ABTmGOd81PKpic09v9SA68C8U5owFIqiCIGoPblXNIk4rCit3f5h2nFKjdOPL+00lnqj0vTMSbRRokIvVAr6v0mUc2YSSY9/yzKednd8Isv9PYvp05CKWY+pxWTOkMdO54HaLgJ3fkDOkXDz2ATiiTeY/cpYkMzmmVP4mY26EgQwSx29DXS8crNZ87489rKjCVQA73Y+ChrqFTb10GT3qbqfFCyYbjg== X-Forefront-PRVS: 0737B96801 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0701MB1389; 23:RSX4H+fUjDYFYoUCY69cuBl9m8p1V0Sm+mjXmIv?= =?us-ascii?Q?6JPXkGOTfhIP2AncRiINMAkJkbRvGMduT/Rx27kn2O0l7myRdJJFpzvWDe/R?= =?us-ascii?Q?JuVpUzYvBJiMibwg3wjEAaRqG7dKLaEVCV32+SvFylLwTEgwHv1ELybESo/3?= =?us-ascii?Q?QjAwufd48TKmzQMFCfM7AWNfzXgZdbgENS6xU5qFrD1C7R9jRIxYCJJIXtZZ?= =?us-ascii?Q?nEFG4udrFkerpWptypw/7tQ0y0V1+qJo69zWtUCBqQ4m0FvMXZP967tLhaKi?= =?us-ascii?Q?yLsY9otEkP8cMMLwOpA4w77ivS70IvTsFKUw/WrMCo3Ukd6VXOntKMLbPOdY?= =?us-ascii?Q?ir02i8VAymkOeAgYClzJPVTe11uM8hOaVKfuTLqVe4iXqIM0GoH1vf6kHixA?= =?us-ascii?Q?FsWQybYm306LSCVkkEb5Q46RSOQBFrnM6kP/nUUEOP9AMtOJlPl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bsg27npIAq5m3kX7rHXd02uO+acx5D2SYm7h5QKevV6vIdZ2gwdNuUn/N0v6vhDjhbwnymudH2YcZDuEBjznnnvbQCL5jw+KdloaJAwTYW3KB6J/O3RJR91IhXEntmk7l7QLM5AtggckCNs7YkroQZSf1qa0AXt6UQviCRSJ64KCcXEkepv8HZWmlzLibZj7hh5GL9iJ6GRz2qM7kggitqsoUgEtTc/bWkcvjYohT09DH3spR8LWa X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2018 21:27:06.2004 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 36d6dbf3-3303-4c9f-5271-08d5ecf5364d 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: DM2PR0701MB1389 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) {