Received: by 10.213.65.68 with SMTP id h4csp439582imn; Tue, 13 Mar 2018 09:05:56 -0700 (PDT) X-Google-Smtp-Source: AG47ELsYSeO39L1VU/AnW+e0XlywiXi6GegCTaGKCpRQHQLOYFMOyuvafkgkf5kPvAq3Ble40L3X X-Received: by 2002:a17:902:8d92:: with SMTP id v18-v6mr1029264plo.21.1520957156454; Tue, 13 Mar 2018 09:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520957156; cv=none; d=google.com; s=arc-20160816; b=tudZARgusXEdIu8/+mU21v6XcR8azSKxhKClPno2QYKoCGRkOVZ+uv91QMkd1FcCyi 3IA+1xpNjjqYF39AEYHTE4nNOCb/WXwYxCuuR7EI3QGs5XgWOEkJgmj0HldnlT8cafMn 23kex6PVn3/X1hpd48TeDdQMY9P7k+fvP87eN84lpPOTC+SCYRAvt5M98y3LKdwWY2Ka tgH9JZI0KYSdjlV17de2GnU57oLw1kDiYsoJcDntqwVBzLi/urcrqqbMCY05TMTkOBUD v8x9+BGjhEdCcM0T9df85cKyafJ/BffwCzz4c5bKHTxekG1fr61AFNTTW5LvgLLG2Rpy SdVw== 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=nbbnrAkztFgkL/9CLPgR/jPytJqydQNXJzhq+XCjj5A=; b=xDT1VNCHQYoVAT06eVKG25IUhlmjNODEodR8PR+vuwnsmOfjBuxEvyh4LF3s3igv3g l0sLkNSria9gwg14nTt5Dot9KKvmMANkJByv2Z5dPnBCicjihoki9g5AuDeC0xCkn9Yi 3t9otikjKmEjJwDsr1fcuZPMqU8w5Mdns69cNlmEU82S4QI9/pBUJ1symCiuIsOp1MjG GQZX5Uca0qQQ74kdR08vWgySWCmnh64UFERywEJ2tqtu2KIyPdobHsUPc5bJefuouoTC e6GTKRn9HHf0prItx0qrbm/6P7cWAAg+ZnIQcWwoDIigYOoCfj4seBI8zYu7zVek3PlC eItw== 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.05.41; Tue, 13 Mar 2018 09:05:56 -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 S934308AbeCMPhD (ORCPT + 99 others); Tue, 13 Mar 2018 11:37:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33764 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933917AbeCMPg7 (ORCPT ); Tue, 13 Mar 2018 11:36:59 -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 00822120F; Tue, 13 Mar 2018 15:36:58 +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.14 039/140] scsi: qla2xxx: Defer processing of GS IOCB calls Date: Tue, 13 Mar 2018 16:24:02 +0100 Message-Id: <20180313152500.757095021@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: 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 @@ -973,7 +973,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", @@ -1142,7 +1142,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; }