Received: by 10.213.65.68 with SMTP id h4csp450350imn; Tue, 13 Mar 2018 09:25:54 -0700 (PDT) X-Google-Smtp-Source: AG47ELtZYifMgnhTbg5snapcHGjHnyDOBajH3yDQFYDixLB12kiAkmQOVN8Qm78YCQv/DLUcYmV/ X-Received: by 2002:a17:902:7885:: with SMTP id q5-v6mr1048580pll.207.1520958354681; Tue, 13 Mar 2018 09:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520958354; cv=none; d=google.com; s=arc-20160816; b=ACFjknEbgCavfyo7S1H27Waq5ngIb7NlEd79ZZ2cwaaaoRxti7F1+dy0xQD898qS9L k1yWQOl3VOyWSFoBeY2obxDwCBfugVpO72LzD+EtcTMtPQ8geWXJvhjKpNZiA/sGfaio 0mEnburxcIPR7mgYWdCjyva96KQJQrHu7ppcyXPFndE62mdobDBjosfCVtk33hHjfyfv 6QimvH0APXTbhA/R3GvNrQQgODnrmBU65ZGUlDSA69nRPsf2NLa/zekHEXVuNMF8dWQE E/lK2BkLaMvlVsUkePHvVD2cdnmayQKDpSWGOvs7xn/GyioJWhou+dc4RBERZDMxsZPO V/FA== 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=E33erVtdJaa3VnUPFKU89eXM2BZiIYhg/5tYk+2sGfA=; b=QfAGNIzcLesDEJavp7Gi0KpGfQCLESvhZRbgG1gHX4e6QFAkeSHFAriXrSLSN6w2wT ZDfofKnZgce0kmylrbO+q51o9jCIWIKlufxdaeHjAvm0/eIv3NiIdpa8pLd6q/4GRC/T g8b530lprTZo2n996lOnDa0jPznDyuMUkcpK4/0B/YUqAlYEoFrVTDNC8bLPj0byu4Kh KSq3sz7FamB0gHIy8rWSOz3ipoDKEadyIvXRhiL/De6vX7qQts+xUF1D8pR0KuuLlGxn YzsHcneksnwEP9A+Wa/A3UleLTp5yRwZkyhCgT+4NfHi1f0NMguoL7zQeIMPYA/7JZMg a7JQ== 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 e30si262441pgn.261.2018.03.13.09.25.40; Tue, 13 Mar 2018 09:25:54 -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 S933160AbeCMPeR (ORCPT + 99 others); Tue, 13 Mar 2018 11:34:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60964 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933698AbeCMPeJ (ORCPT ); Tue, 13 Mar 2018 11:34:09 -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 A67EE49D; Tue, 13 Mar 2018 15:34:08 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Giridhar Malavali , Himanshu Madhani , Hannes Reinecke , "Martin K. Petersen" Subject: [PATCH 4.15 140/146] scsi: qla2xxx: Defer processing of GS IOCB calls Date: Tue, 13 Mar 2018 16:25:07 +0100 Message-Id: <20180313152330.885836729@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Giridhar Malavali commit 5d3300a9b8b122b4743aed5a178bf12c87e2b8c9 upstream. This patch defers processing of GS IOCB calls from interrupt context to avoid hardware spinlock recursion. Following stack trace is seen ? mod_timer+0x193/0x330 ? ql_dbg+0xa7/0xf0 [qla2xxx] _raw_spin_lock_irqsave+0x31/0x40 qla2x00_start_sp+0x3b/0x250 [qla2xxx] qla24xx_async_gnl+0x1d3/0x240 [qla2xxx] qla24xx_fcport_handle_login+0x285/0x290 [qla2xxx] ? vprintk_func+0x20/0x50 Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") Cc: # 4.10+ Signed-off-by: Giridhar Malavali 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_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -975,7 +975,7 @@ int qla24xx_fcport_handle_login(struct s ql_dbg(ql_dbg_disc, vha, 0x20bd, "%s %d %8phC post gnl\n", __func__, __LINE__, fcport->port_name); - qla24xx_async_gnl(vha, fcport); + qla24xx_post_gnl_work(vha, fcport); } else { ql_dbg(ql_dbg_disc, vha, 0x20bf, "%s %d %8phC post login\n", @@ -1143,7 +1143,7 @@ void qla24xx_handle_relogin_event(scsi_q ql_dbg(ql_dbg_disc, vha, 0x20e9, "%s %d %8phC post gidpn\n", __func__, __LINE__, fcport->port_name); - qla24xx_async_gidpn(vha, fcport); + qla24xx_post_gidpn_work(vha, fcport); return; }