From patchwork Mon Jan 22 20:04:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10179137 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 05B1A60353 for ; Mon, 22 Jan 2018 20:06:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAC12206E2 for ; Mon, 22 Jan 2018 20:06:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF64D28448; Mon, 22 Jan 2018 20:06:38 +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 3E6C2206E2 for ; Mon, 22 Jan 2018 20:06:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751110AbeAVUGh (ORCPT ); Mon, 22 Jan 2018 15:06:37 -0500 Received: from mail-cys01nam02on0049.outbound.protection.outlook.com ([104.47.37.49]:58289 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751046AbeAVUGd (ORCPT ); Mon, 22 Jan 2018 15:06:33 -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=y/lcxhhjP5prSsRlvJfD7a+eYdsYiMceFZqgP6gwtDc=; b=G/qZ32t0Gpp31ZvyDIdxhSGCm2MhjrJVSzbA4zwXpV4x6HJrRwVb98kbB2f5hqkFnDXp+XKwdjiDTZFmKYcROh0vC/ITbJls5/cl5CEx9aecdf8pBlh3Js503UNEOjbuBkG3tOPdsxJ0ABEAbEcwl9xW/vpXgX7RbCoRnWPc570= Received: from SN1PR0701CA0053.namprd07.prod.outlook.com (10.163.126.21) by BY2PR0701MB1942.namprd07.prod.outlook.com (10.163.155.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Mon, 22 Jan 2018 20:04:29 +0000 Received: from BY2FFO11FD026.protection.gbl (2a01:111:f400:7c0c::146) by SN1PR0701CA0053.outlook.office365.com (2a01:111:e400:52fd::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Mon, 22 Jan 2018 20:04:29 +0000 Authentication-Results: spf=fail (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: Fail (protection.outlook.com: domain of cavium.com does not designate 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 BY2FFO11FD026.mail.protection.outlook.com (10.1.15.215) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.428.12 via Frontend Transport; Mon, 22 Jan 2018 20:04:29 +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; Mon, 22 Jan 2018 12:04:20 -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 w0MK4KV4019559; Mon, 22 Jan 2018 12:04:20 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w0MK4K3V019558; Mon, 22 Jan 2018 12:04:20 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 2/2] qla2xxx: Fix logo flag for qlt_free_session_done() Date: Mon, 22 Jan 2018 12:04:20 -0800 Message-ID: <20180122200420.19516-3-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180122200420.19516-1-himanshu.madhani@cavium.com> References: <20180122200420.19516-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)(39860400002)(346002)(376002)(39380400002)(396003)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(316002)(478600001)(42186006)(26005)(48376002)(110136005)(105606002)(86362001)(72206003)(16586007)(50466002)(54906003)(336011)(87636003)(4326008)(106466001)(36756003)(47776003)(305945005)(69596002)(8676002)(81156014)(80596001)(50226002)(2950100002)(8936002)(356003)(81166006)(85426001)(51416003)(5660300001)(76176011)(2906002)(1076002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0701MB1942; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Fail; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD026; 1:BHYqw531Ig3tZ5E4GJ2hjAFNduHE6+4gRT+vspo5edZWzNNxVhIdoKFSDgePwcUrisWBAbpNSqefqeSB1myb94lLa4F0XfDsPODSOOeH96ch7yrn9vp9wfUlGJkzcoeN X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 96f7f6e6-9ada-483d-beb6-08d561d35887 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534125)(4602075)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:BY2PR0701MB1942; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1942; 3:/5KEQ4Eat/diPgHC72JVJ86q97hfpjRs+Hy7EktLtBcbIgIO/TzmkcyPdLhwIIZ5hKvTTR4qucyM+aSgyZ7p27Bvby3eL+Ov5AWGua3cy4uwANbk1LGFZFmMwbGYn3bPLVbXo6RphB7MiSYc6uOooIHftHcK7G0s+eei+VLpeSeidAuYM+8CofO5UPcERsSlM/7i+lckiWDb5k7Gfaltpl+/ocfT9HEo30q9w9kGmVGSNfwYZaegKsomVTeTF5jQ9tukEjv4mV2IqPRLRhPZQ6IjzPY0cTTx6jffL3J0fwpjMKHZfPhGj5kKxGPFFh7UQZlXddCKiK1HP+/A3q+wvR3a83hw93zN7M3Jx8/eMaY=; 25:Le4cYYrSE0m0BrWwMo8bAaOuMfGeSd6/QuOmEs2QS2dZv5P3YJC5I8CEyRP8jmczSEG2veiF6pX11fpkjE/k+ETcVsMyy65CyIw4houtUud9EGkfPYgeZ5AtfQ+01xIQizhfho5nbQ9QewmJ0K1rlyHFX3wnvHHsHE7X7ZwYMC/ppk3T6GrsKfk1UOjXrbkpR2v8KQDcZ63iVlAnhKZqMylGJoF6GIj6WZtrDrAzpRucFHjaqFl9qU/T7gNPVY5WluCZsKPFghVo8JhBuXW1LDxkOQj7OLxtISvuyL7sPKYwy1DAKAvvV/TB8h+KLSo/hdF5gY61KaBztbAL2UMRyQ== X-MS-TrafficTypeDiagnostic: BY2PR0701MB1942: X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1942; 31:OXsQbuNz9cr+274tFCRE2rcFzJYs6UTGucPplyo4XcYaOeB/Gts4eH+pPU/Wq3v35VPAQ7xo1UBsbwC2SlC5eIjz8wSHFVYyPgS6Lpk1yj8GTb4nXJHkxg2/lq5l6CEPsaKOjM79SAAiSQIvBZnMDPLW11YzJ4U5AumlzWczSy0X8mTVRJYYefBNH0xxONo32D95ST5Rjsm24J8tppWVIiSwUQy2MBJW8kUZADzoNEQ=; 20:kghtNT+VYYvMo+wNDLypi2jKDFpTjH3jLrX0Bhf6pduPfSI4148/9HqtRwmKraUazteLGBg2H+FPyaw7By78SJKK9B6Wo3KUTGjNIoqSjxmfs2oO5xS6X9X8X0z6CuGQ851Qkh0sX9+eDDq37FydoriGq5F2W5EAqdPGfoVTMrpU5ZIsk1lrYQ7qxGzZCZXqNSsXINfpdxhg7CwbKY8eznR3r/D58acBvSnDennwVCtqauML53273Qnw5vwcISiSzBR0PK3rF4zOvHM7+JIEa0z1nTtc/D5mfoNiv+4IgpldhbLIzw/doIJdWqkIE3FbZ/iXjDkdMVzLhycnRBLQyg+6i2jbt5v6EEQUEFtfQpj4GSBHqy2M7JyickScSVc41BcYY2+nFJrQB0d+xzRP2nHBKgI9z5shfi7uevosOgNL6f2IA1D9dko2JJ+JLpRk/eZcwpkzVlz3iGo33K2pKrpSW3399f/3+k204IsTt4mCYKpb3twT/w/c/WWnX08/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231023)(2400081)(944501161)(6041288)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BY2PR0701MB1942; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BY2PR0701MB1942; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1942; 4:M35+XZ3U0JnU/fy4NYocS6prFC39U42ZImnz33h4F2xVA2s0lergAy07UlJ5/QRvbchjhLtwICk/4XXW8xD099Ss2e+MegBaIS6Dq3seQxZqQdIz/pI++n8Gm8tVtg1mKU7umuKOT1LzWrTRUdc5+2GcOy10iLaaZmMceRhVvVco3deBQGngOFrl4xNlJk4Xe3kd2NScR7e/2/uN5BbV0ulcbHO4Typ3v6lg4ydyhKOERi8eFfOkzf3uNpUtVdFvOr3FQfhghIK0C78BOaehVA== X-Forefront-PRVS: 0560A2214D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0701MB1942; 23:/GaHkfFAIHlWr09nVwuHJUL28usOAVrrYGwiFXa?= =?us-ascii?Q?z5me5Im9kfp5XuhX4avfGz0Dwc42WVgOPPe2d6MSemEvb89Tf+4aAHiACzTl?= =?us-ascii?Q?fwVzo0SBlQFssDt4Q4s0jiKIenfzQpmW0iX4EM3zFkVX8f4uqj5bFYoBhK1B?= =?us-ascii?Q?/b8GX4+FJsyHeervnmP3tGkuzUHpMVNwgbIwHKdZB2H59vYK/KDXLWHcpvRC?= =?us-ascii?Q?01RZ1xsJls2aJw9IaMtAEZ5yKDlyqKc2CcvKtcIbCXhPicBIsRExuod1/Vlo?= =?us-ascii?Q?3EMcoBrTBQ7CuMBYT7CVyTApDahlJnhEBWBJFkOaQCMnMSJDDomsQVhfByK8?= =?us-ascii?Q?bjxzPjhXFg63y1m0sGL9QmhvKR3rqLj1JDDPc9805Q2SBp9QnQTE67XSZa30?= =?us-ascii?Q?u7RZpAIRyOXX9fVyBcdsLF1ci17DArTsoiJCBwOYF7SKt+l1LT7GjvlEIY/K?= =?us-ascii?Q?yWl5m6kMC2c/qNHd3lVOHDLRPqXus1brvDEmZG80v6JqgQCOzF+OXbwfEWub?= =?us-ascii?Q?mg3T9LK6mqEBSX91LGIpt56ts7t+Hpf+tlS+8eVqvUdInnNJN4d7WULisH+s?= =?us-ascii?Q?6/9wrH/0FCIFNc24jh+082y7928Ix0bzrXVcGZulffNFhg1J29aumMWnSOO5?= =?us-ascii?Q?ssiFiUIt6y5zSnnlxUCbG/sGF8QisOm3HH3FIQVq3sNOYrFcljTQ9W+KFl++?= =?us-ascii?Q?VztedzLCEgzE8l2iolFSc98F8sMTtodt6GYLk8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83HHZy8HQue97mQUSlJiE=; 7:1B+/2DEXFxrp1FIdsI5Qu7ahoxEkqkuIhmaUOrlRgmrxblw1+YsqIekJRF0Eg+eMmSECOWd4S1IqMPHsBnA6ti3iH/DSp8TAI5sAyzTglScPiv7Ld7LNmEVcmu/uLj828cqD+EZNFSwzHs2pw/j+fPhHs8lyRndu/0AbomSm5SmhfvDYtyn/0jMyBktWRFMAzB4v6ji/3sXNYH2bgA2XdlvMEsl1qNhG8vxQRhb1vfZCkyM4+IxPvVd39wkLmnV5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2018 20:04:29.1894 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96f7f6e6-9ada-483d-beb6-08d561d35887 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: BY2PR0701MB1942 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: Himanshu Madhani Commit 3515832cc61467bfb87191a30401de1700e9956a fixed the target re-login after session relogin is complete, but missed out the qlt_free_session_done() path. This patch clears send_els_logo flag in qlt_free_session_done() callback. Fixes: 3515832cc614 ("scsi: qla2xxx: Reset the logo flag, after target re-login.") Signed-off-by: Himanshu Madhani --- 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 dd8edae4c152..14359656591e 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -988,6 +988,7 @@ void qlt_free_session_done(struct work_struct *work) logo.id = sess->d_id; logo.cmd_count = 0; + sess->send_els_logo = 0; qlt_send_first_logo(vha, &logo); }