From patchwork Thu Nov 30 03:40:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10084193 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 62DDD602B9 for ; Thu, 30 Nov 2017 03:41:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59E6929935 for ; Thu, 30 Nov 2017 03:41:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4ED7D29B02; Thu, 30 Nov 2017 03:41:21 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 AB5B429ADE for ; Thu, 30 Nov 2017 03:41:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753434AbdK3DlO (ORCPT ); Wed, 29 Nov 2017 22:41:14 -0500 Received: from mail-co1nam03on0074.outbound.protection.outlook.com ([104.47.40.74]:18054 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753388AbdK3DlJ (ORCPT ); Wed, 29 Nov 2017 22:41:09 -0500 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; bh=hM+qrLNGexL05HnlmsLskzH03Cp1doP0C/Wz762pA4w=; b=dPFZVKbOveymkLnvpPONX0IL5uFm/cIplklUJNN7EFnHtHHp7IFiH4zG/ugEwmh7+J06TAbXecTr5Vk1VYLNLuQcVnIfZ0Ol3xcsIIkWpG54kWJuPE8jYWTFhKjTTG8342RoAEj97dPk4yycK4+s5ovJd6KF8UB/T24t72S83PA= Received: from BY2PR07CA0095.namprd07.prod.outlook.com (10.166.107.48) by CY1PR07MB2523.namprd07.prod.outlook.com (10.167.16.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Thu, 30 Nov 2017 03:41:08 +0000 Received: from BL2FFO11FD049.protection.gbl (2a01:111:f400:7c09::147) by BY2PR07CA0095.outlook.office365.com (2a01:111:e400:7bff::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.282.5 via Frontend Transport; Thu, 30 Nov 2017 03:41:08 +0000 Authentication-Results: spf=none (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=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BL2FFO11FD049.mail.protection.outlook.com (10.173.161.211) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.218.12 via Frontend Transport; Thu, 30 Nov 2017 03:41:07 +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, 29 Nov 2017 19:40:50 -0800 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 vAU3eoN4015154; Wed, 29 Nov 2017 19:40:50 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id vAU3eoBN015153; Wed, 29 Nov 2017 19:40:50 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH v2 12/22] qla2xxx: Clear send ELS LOGO flag after target re-login Date: Wed, 29 Nov 2017 19:40:37 -0800 Message-ID: <20171130034047.15070-13-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171130034047.15070-1-himanshu.madhani@cavium.com> References: <20171130034047.15070-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(2980300002)(428002)(199003)(189002)(36756003)(50466002)(1076002)(105586002)(5660300001)(4326008)(356003)(106466001)(50986010)(76176010)(2906002)(47776003)(189998001)(33646002)(54906003)(101416001)(42186006)(16586007)(8936002)(48376002)(110136005)(86362001)(81156014)(80596001)(87636003)(69596002)(51416003)(478600001)(6666003)(305945005)(2950100002)(8676002)(72206003)(81166006)(316002)(50226002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2523; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD049; 1:Cz0AhoIoBmtoMdFf15pc5ufj9kYQUdLJ2S1wm0/q5TZ7UPHHwG1c+DD6CPLD1Z45acjDqEso8zHLFOF9kKlMsPoEKaFhv3u22BbdinjMUlsrqmm2OexeucGxuSy+yKZF X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 08223be4-b0c3-42c2-3249-08d537a43126 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603280); SRVR:CY1PR07MB2523; X-Microsoft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8EIeT96/hnJ3S/DqMfW69CAuHHqmz31TugGa7P008jFmPKz0qeFEzxAVQY4luzotLU0Mw6Wj1unLZ6/IE7/snMuIBjCrMPymEGU5zey9GSwJ3vgHObsbpB2KUpz+UF2J/vKdTIPV62IzTKHDLJhscz0covPXEibjpBlnuFOrZF6OU9+tKGRYFP8Vg82MpmYfWur5t/YygACp32piLlQEZ9QtJFs3i5orapJWdN9X3W0PvdHZajNOvNcAy3t8RVTDeLJYyTUxtCpbxJWISkqt+GXon8dVxQ1SO6siIOCFZdJhlDWN5bEeae12tZ8IAtSTQMrl1oeAkdpIkAyUhYWBwz/r9Q/bF3nqkPjLVzqtc6uyHvPmkashGLp8dQfkmBZ5l8QWaizc3SMPlj4iq6OxkvArJ6fshrLWQcJ+Lx6iQpir5ndj4uA3zfHr+HXy7NHZJNuBFkgqZoA69tSmDC+qzgFb94o3axAoEfYo3 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(3231022)(6041248)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123558100)(6072148)(201708071742011); SRVR:CY1PR07MB2523; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR07MB2523; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2523; 4:gWvA7Sjea7OWouImXDVKX4TD3PrSzsiC5a+k84oqb1gJ3qKOeEtUn+zV1ORcT+0X67gWBPqC6rk4Za7rqRhYBnG7q6bCvbxV1f4kcFBscEu1aX6DrJXF65tZwGmzLZTNl+Y/b0+ZQFBu4iV8PX242kSegEvpyC58LmhFhey8jT4ErQkPr2mIL3tXSmONN2rLGNfdjvHNUlAoboCIojXjijtjqPnM5ZLc4/KIyMy9QV7RTiQ/cFwF+mdCoCfASWRsnHA+NauT/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T15Wn6atDSEOF0X/0nOVbmBplYkYuaKr4EcKC+3EhFsHQ0TQP/KpJ/An256R2Vi0ENKReV+n4WXO4tbxjLq9ItMnUZkyvxvWNYso6evOfiZHDJN/b0mz0N1MdKae9TxCuXLG7PPPNWTVWHtMBAEbvgrWHAafeP0luvsdmR6DNindSLz2T5Aqhe0tL26HFjyEFPkbIxaXpgeUba06M+fIvkkMCWclqNqzd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2017 03:41:07.8113 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 08223be4-b0c3-42c2-3249-08d537a43126 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: CY1PR07MB2523 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran This patch fixes clearing out els_send_logo flag at the time of session deletion. Fixes: 3515832cc614 ("scsi: qla2xxx: Reset the logo flag, after target re-login.") Cc: # 4.10+ Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Reviewed-by: Hannes Reinecke --- drivers/scsi/qla2xxx/qla_target.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 283ff316e4b2..e824cdc77139 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -983,6 +983,7 @@ static void qlt_free_session_done(struct work_struct *work) logo.id = sess->d_id; logo.cmd_count = 0; qlt_send_first_logo(vha, &logo); + sess->send_els_logo = 0; } if (sess->logout_on_delete) {