Received: by 10.213.65.68 with SMTP id h4csp442209imn; Tue, 13 Mar 2018 09:10:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELtSKGZD+elAArghVjSVd9PN/nEucY47c90xTYfd/KlKfp1ezShCODAm3TFDCXDc/GpUpMyD X-Received: by 2002:a17:902:5993:: with SMTP id p19-v6mr1007712pli.347.1520957425110; Tue, 13 Mar 2018 09:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520957425; cv=none; d=google.com; s=arc-20160816; b=L1Db0yoQHO5TecBG0iw3QozqG8g8Oi/4daG5GrMZUt8gpVUtwkSFlC1t43VjFhcrAX oRzQSsKo9ShsUXKYUkR1/QYmVQtg4bL8oXMEdHnRqsUlZYnem+65Zk74XRJaffPHinOE 3wEY5GzJEpgwCBPHP1xJUckflj05eCJj4sANMuxHvlZIVdp5CL6YFWEDGfZegYDsXlFC nuRxywKBbO1C9TVw91lqBsPK3ulhf563AgUnOTrMzj/fRTzW5Q0cAlI78JABK3sRXfwd xsXm+2mvGtePwHmHJzQ/HNcEFDWq5EyGhlIVuPyM5vzjWREinm1yyGmrKvpBReO1hVqn 1pWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=+J2r3llMWQJKm9c6vyjKBAsYDDxtFKVG7Kjn5jJkGcA=; b=IH1B2TsAsETMS9yai27qPEfjeiLtZpH+EiQYOX88l0yDax4UlSiPEfnHxG1JHgoU/o W6z0g9UM9nlCXU19ECXN/Rr539DStiaTpDK2ZFCm4HCL7wemt7r+qP6X5LwTlOxHf62j 2rFRjlQB3lv8CBPSvwImY7QtE6+zcuJKtpHvOO2mO0IrypgXvAUCEQ3/mYJToaJqvGAY eP0XMD1H/wbL8cvVVYq0fMX+XM5S69IXQScceCDPy2m56EZrPfiYHD9qkvM67XZJl4JS yRl2j3FhVxP+PWCl4L7kKK/U3A8jlkYci2gD6wxEgcSkhuEYWSy+FXlcUEseZtkNlK1X ockw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si274775pga.543.2018.03.13.09.10.08; Tue, 13 Mar 2018 09:10:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934307AbeCMQIu (ORCPT + 99 others); Tue, 13 Mar 2018 12:08:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33588 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934236AbeCMPga (ORCPT ); Tue, 13 Mar 2018 11:36:30 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 3185010DF; Tue, 13 Mar 2018 15:36:30 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quinn Tran , Himanshu Madhani , Hannes Reinecke , "Martin K. Petersen" Subject: [PATCH 4.14 034/140] scsi: qla2xxx: Fix PRLI state check Date: Tue, 13 Mar 2018 16:23:57 +0100 Message-Id: <20180313152500.418550144@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Quinn Tran commit 23c645595dab7b414f23639d0a428a07515807df upstream. Get Port Database MBX cmd is to validate current Login state upon PRLI completion. Current code looks at the last login state for re-validation which was incorrect. This patch removed incorrect state check. Fixes: 15f30a5752287 ("qla2xxx: Use IOCB interface to submit non-critical MBX.") Cc: # 4.10+ Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Reviewed-by: Hannes Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_mbx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -6078,8 +6078,7 @@ int __qla24xx_parse_gpdb(struct scsi_qla } /* Check for logged in state. */ - if (current_login_state != PDS_PRLI_COMPLETE && - last_login_state != PDS_PRLI_COMPLETE) { + if (current_login_state != PDS_PRLI_COMPLETE) { ql_dbg(ql_dbg_mbx, vha, 0x119a, "Unable to verify login-state (%x/%x) for loop_id %x.\n", current_login_state, last_login_state, fcport->loop_id);