Message ID | 20180801061335.28709-10-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-2.web.codeaurora.org (Postfix) with ESMTP id 4A8A51708 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 1 Aug 2018 06:13:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A5332A645 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 1 Aug 2018 06:13:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E88A2A677; Wed, 1 Aug 2018 06:13:54 +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 EC29C2A645 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 1 Aug 2018 06:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733224AbeHAH5t (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 1 Aug 2018 03:57:49 -0400 Received: from mail-dm3nam03on0045.outbound.protection.outlook.com ([104.47.41.45]:45694 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733157AbeHAH5t (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 1 Aug 2018 03:57:49 -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=q73mBtb4qToxfLr5ySc/J7IffPzGE/ckaZ8yytORsao=; b=XGMevpmFw7vrUVKKHoRaskkbgYCWoMzLfMr0cJ8eLn4FaMU020x7v6XokbPqoJS/bITejJ9eXysvo3M97cP/m4r1AgSStsDN1+BAfKNkN67OcePy7WY6eLipeG9nA4d4FK5mByBe6yjP0wKM7J+GdEzwQceF1DP6KS0XiYnhKnA= Received: from BYAPR07CA0027.namprd07.prod.outlook.com (2603:10b6:a02:bc::40) by DM2PR0701MB1392.namprd07.prod.outlook.com (2a01:111:e400:511c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Wed, 1 Aug 2018 06:13:47 +0000 Received: from BY2NAM05FT043.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::202) by BYAPR07CA0027.outlook.office365.com (2603:10b6:a02:bc::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.995.17 via Frontend Transport; Wed, 1 Aug 2018 06:13:47 +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 BY2NAM05FT043.mail.protection.outlook.com (10.152.100.180) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1038.3 via Frontend Transport; Wed, 1 Aug 2018 06:13:46 +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; Tue, 31 Jul 2018 23:13:36 -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 w716Db7E028781; Tue, 31 Jul 2018 23:13:37 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w716DbOO028780; Tue, 31 Jul 2018 23:13:37 -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 v2 09/16] qla2xxx: Fix unintended Logout Date: Tue, 31 Jul 2018 23:13:28 -0700 Message-ID: <20180801061335.28709-10-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180801061335.28709-1-himanshu.madhani@cavium.com> References: <20180801061335.28709-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)(376002)(346002)(136003)(396003)(39850400004)(2980300002)(438002)(199004)(189003)(11346002)(336012)(50466002)(48376002)(86362001)(72206003)(446003)(476003)(87636003)(478600001)(80596001)(4326008)(44832011)(69596002)(1076002)(126002)(486006)(2616005)(76176011)(8936002)(51416003)(14444005)(8676002)(186003)(36756003)(26005)(52396003)(54906003)(316002)(47776003)(5660300001)(2906002)(81156014)(81166006)(16586007)(110136005)(50226002)(106466001)(106002)(305945005)(42186006)(6666003)(356003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0701MB1392;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;BY2NAM05FT043;1:HZzAPXqnWUMFg/w+dwfccqX8YOCVUQxbUg3sHSnheWl0yKvZOGJRtQMwawU7JLo2pAwPBzYkAUjmkcCtfIlur6EgWOBJRB5OH666cq1BSIkOn48m4hzCbsFxkVmEv38E X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7dbe3763-121f-4572-538a-08d5f775f108 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:DM2PR0701MB1392; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0701MB1392;3:gsokiM6vfJGrk9Y6LBqpVRPUyqtNqwKnrp+NceibT9xjQiYhEP3QXGaL7gcfIjfu4M8OYof7XYSdYj7UAvF2fUiqooDpbxyc56Br6E871q/hreDm12rS0sskCX+QbCQQ6rz5BVqwiM78DzzVXcNBej4FYloIkG5SrKxEUUgy+uXlBTrW/p55l0ddQhioIj/JynPcDmCF3RmP32EalOHhZdSqyuAsHNjM0Er9Dxs9kVofCfomTfiXl30Ng9BtcLuX7nbAXUuYqT+tuQMnK0yBpK6zBnPTKS0RJyFkIpGfflDdcBAkSz3CNwV3POyLJBSPD75C9NE3cftxPLcZDXDo+sYlpDdNsHolERPgc09iWqI=;25:C6J0btKUI0NoEnch18E1oUJ7eeoDxmKQX2vOkSVW/8GAKmTH12GoKJfhQPtGOSw4iIa5YLn6Om7tSlzDvM1FSJm6OPaQtbN3QQbUdFW7r24HAkc7jt3Nmi6zdfUp51q0EjcKD+subdK/F5DkUI/9N5IPVXJDX/klVt2kJ+U4EWBAVTBYV5gfoRUihAUwkcfe30icHyBQuO4QqX34uFhkrnxlMmd27q/ynm8er3ubtemazwvm932tkgk2ZZwoNx/9JI5+Qq/FOHr0tbGrjdenG+j/u4DNhZwlxLyu6SkqMUrC5zt7KyQ6qBcsYVPDiTdDiUYW7Pd3bbJrNr3tRaTUbg== X-MS-TrafficTypeDiagnostic: DM2PR0701MB1392: X-Microsoft-Exchange-Diagnostics: 1;DM2PR0701MB1392;31:THHaIsv23kux/tFF2FYIVRdY5IeyiITnDRn3SpU1kd43DQ5vryhY6IsjeeSRzZ50uFQsFJWYOmse51WV2DUrm8H8IfwICig4mtJUJTpopkTKFv8J0UMS/kqpbA52eTLHG+Yfl4KHtwHDsnD/+aUHWKwp8pWsn1NrApXfng4sZ+jpkGiUU1NyuMs9qaoDAN65dVf7ul0M9rumnG3dLVQwPurrSdSX+jYyvQfrpKvhnzA=;20:MH7Uiz1xxdW4YuDB7mijpAfrb07qA/B3alDMOxLjx8QNu6Vm5l9KBPhrVCL5PQVYZ7v689JVmZzslFFQZnt4HYu/A92663VHAzeKPLdNkwWf62r3oJDJH9OG2ZC9gmIGwO62RTuKXinRX0B0ypfS7cM4iFILWkqlxobFi/jyUkGkg7UJd0djZE3ATWlqFjlSv8AMKDnfG5uLrEFN3h9hvp208aDm97WCiA58rdKkCXGygCISSDuvPyotd0hqSfKh7uVcxw6GktUAer+W+z33rEqodcPvPejwvEJ5VK3mhywcwuse/266i5VmDuxZvtZrbYiZyxtajTw9pxq5wAA1/2d3Uh07o2yY8nmbUpS7tQ1WUsHtVSXf/cXnHa3yS65IGFaC1PvORU8ZeR99pgI9s0DNGB31z3UMeftDwboHc1c/D5YdMrwQJQQiRYZtfMcsu4SIIAJL+yPkIeBbiEqltcChA3rxkibCfAte5BkL3x3AzDkJh2EgkH0WMOn7CdDe X-Microsoft-Antispam-PRVS: <DM2PR0701MB13926F45CFFEFD33E794B6C1F52D0@DM2PR0701MB1392.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)(3231311)(944501410)(52105095)(3002001)(93006095)(93004095)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:DM2PR0701MB1392;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0701MB1392; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0701MB1392;4:JYsi+YWP1SrRt+pgrfW0WWnNkwAOM/L6oXoNQoNUV5tmywIq5nS5TXSIkY2G8HUgqpTvc7MmDcByKVJmfDknYYwuvaswXEUMy9WQv1hvjtHhJKrXSTBPJez3q59pD9Zvf5iFhrCRurV+S3uMWlJ3uCABqYsOaxzE0VMvGKhH8M7fezmZ/YI3WXfSZ6aoirs1fCQjc6aXkXLqWyhd10lcjLNC7x0bRiiRbCz3MaSDc85UojaW6JNGAwgNBLgTL23lgbnmnEhgh/ZdPt0bH0nzKA== X-Forefront-PRVS: 0751474A44 X-Microsoft-Exchange-Diagnostics: 1;DM2PR0701MB1392;23:wwCV5dhU7eudiYWEW0RJHUMjFPkXo5fAlsqC1X/CBor+bQzsYrfh5yok/9VksfbDrVcVMotqjs1KDn82VwNmUk1rk9DtlTq+pPC+dzxxfy2Ywds83QDUje8fjHq2YzKJP8UhaT1RDK5L+mdwwuYPVfzHNuFKHc8T7cZecJNwtt8F5dlB2cVbXm7H6EB05NiH8xa7u0MuUGQykK4kP9KpE5pyDB1QjgCKLU/vR2Mj2SV5yxysGCUQIC0Sy3ObGcgUVC/bG0rJm3S1+aZTMerkjJjU7ABKRgWCjPiu0KOWUuw0DbFfZhOcLCVtG5hoTiZkGJj8o0LpQs/yJIe+0gFRea9ywJoLbih/UoPNogbeNfDNhTm1Ol1jNLdTMGxnlxhKQ9gg3yzxTRz7JUa6XhU70G5XItOqZVMOg7itH+MVZPRxRWZ36joHVRMlX6k4u/Ua2AZ44IT4C+r49FilyyI8+4xu1RCIiJMp8UJ2rVJ4wmiRTUMetpG0Ip4L71IFpIRRn58PNvgniGJ4m0mZEhgPEWdeb0v7b9GCwFEbhKCj+Cm5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z5UM8H4rMPos4M8ZhCBoFM1r0uBDyGXwIi8VwFMP6bjuwqyvhb/6flwlX1BG1fyOYOKMMEKBIXZLcnuNzRi1JFCwUz3g9pxsMKds0wv3gQIxYwg78TEkClRRC3WNKuy5WRGQTPxqOaOrFQUnzydBdORyLg8Ynn7iyjOVSDWBDeBTMPKBmcpckcDU0c0M2eLM4HcWaWqKCDQBnF99a+33/Rwpr5dKuvWyptLarQz2dREWwjbIrj6HT+3KHdGSVyOSPGaRvZ0crrCxfsCJHkkwyuxjkNzV4GAs3vSa/B4FQjYyuApyM+ODaFiCOSHr9e7pEhJUJSoW2F6xGYVVJ4/nzuu92LkTFez3Yu33itrWMm1lkuKnqDeHJRiyXOWW6GLA5CO7qjEO5o/RQ3tv6ehe2ktQ4/Ov5RXIgUBTkrIrjBwqcjEZD1dqCLHdA==;5:oWJ7v3vvnwQiwzYZb73GN/KmZzxn1hyVb9ei5mXHnUNTEteC8bqS2LksjbqZskLv1zxgrDb1ujoWZ7ZH2+RYMtLJE/M9H/f6M7XEm+k+MFlrkBDcrNp3tG0XGYvqnKIY3PJK6KJszVpllyUudz4RecCuxkRYrr/4OIJhArnf1Yc=;7:+MMvPpgeR4wtkFqf58osC/8YjzjU3EMpq5W6QgkhVW5Y4WxCSUJk7TGEe6VmDWiKMuPZ9y+ZzFcSAnW2ZiJj6fmf28ibAOMMEHm/pSb/nFp0nuS4fEz3jC435+4Ekncdiv7htGMIcfipjlcFM5+9VLVTmTzSsbpwR5oTiGsEc4wjoz92+i+uVRT9ot0zw5HqV599rIJoRQfrVui1/tpgkVVPsyDK0IxPoANx8GQVIYhEzz2H83wJxnmTF1H5RppX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2018 06:13:46.7850 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7dbe3763-121f-4572-538a-08d5f775f108 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: DM2PR0701MB1392 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 |
Series |
qla2xxx: Updates for the driver
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 4f9c315813df..f9036004f179 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) {