Received: by 10.213.65.68 with SMTP id h4csp441885imn; Tue, 13 Mar 2018 09:09:49 -0700 (PDT) X-Google-Smtp-Source: AG47ELt+IVTAYBRgxTchJt1ik1O21hA7DizTi+gHQTb/Cb6shkeXiNVQeOtYhxREl/e5/GrFPhrv X-Received: by 2002:a17:902:6a89:: with SMTP id n9-v6mr1050519plk.51.1520957389138; Tue, 13 Mar 2018 09:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520957389; cv=none; d=google.com; s=arc-20160816; b=X9gBnqNT+a+GZ4PcCVVy8E9rMlJ7EJ4fD1lzFJOpkVMba5oVwg6OHjPZMPv3LJQRP+ UTWraigmJh2/lZiHbW9RF22YBgFstrvvtBdVj+gkE1Wu7ZeowmhMuYBOyNySGl/d740P ocyCOSamDP+T4eMJuRTd/sHB6lzoobYG+myBZlCCEr3+oCqyymes7xWZYRMRYRZ2Q9Ye sefKkRjm0LRNorwpfjpDst6qvsGnNd/vgML0yFFNPC3/6A0a0nwbLEqgBNBfeLtR7ULt XQ41rHFPAasC7DxKSvivvUpxpkkzqVyl2gzuMA3hYT3aABM3G9V4xOZ6moAmXLwwRX3c 4A/g== 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=KZCOAJSH9GJ6XvhuuRLmaoGXpoFLkdMpB/b1M2vHc6Y=; b=tW4/yBshGnN0LZAkBqPhJvcFl3ZpddQGtguiK9t8LqupUAOH8l8nwaPtvjMX68/XLW 9faI5M1N/qOwh2mYitn0vaY1AfSKdmvSPoixR4sSFx64utnDPLSkP+8GU8j/Yd7JFaaD Q2GAzrDj6QyBTQPH9QoBIUCWMUzAgZvR2Qr1EXgkXQwwXVzG0kf1h5VhLNnciUHG30el TYFeOn8/6oi4gKKl0nRfp1mkl8e9qcYEpwGg/xEKDesM45LvU/mVi8ibU8tfTAaFZTIp yePvDvAMeshCpeWXsHv6n99hqAQOJLglAiUyXc+4wyBsgvZmiPevGWDdvi2vnucACJGw dbSw== 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 f5si284850pgq.806.2018.03.13.09.09.34; Tue, 13 Mar 2018 09:09:49 -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 S934318AbeCMQHQ (ORCPT + 99 others); Tue, 13 Mar 2018 12:07:16 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33686 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753121AbeCMPgs (ORCPT ); Tue, 13 Mar 2018 11:36:48 -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 7A26911F2; Tue, 13 Mar 2018 15:36:47 +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 040/140] scsi: qla2xxx: Remove aborting ELS IOCB call issued as part of timeout. Date: Tue, 13 Mar 2018 16:24:03 +0100 Message-Id: <20180313152500.814611494@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 bf07ef86e882013522876f7c834c8eea085f35b4 upstream. This fix the spinlock recursion issue seen while unloading the driver. 14 [ffff9f2e21e03db8] native_queued_spin_lock_slowpath at ffffffffad0d8802 15 [ffff9f2e21e03dc0] do_raw_spin_lock at ffffffffad0d99e4 16 [ffff9f2e21e03dd8] _raw_spin_lock_irqsave at ffffffffad652471 17 [ffff9f2e21e03e00] qla2x00_els_dcmd_iocb_timeout at ffffffffc070cd63 18 [ffff9f2e21e03e40] qla2x00_sp_timeout at ffffffffc06f06d3 [qla2xxx] 19 [ffff9f2e21e03e68] call_timer_fn at ffffffffad0f97d8 20 [ffff9f2e21e03ed8] run_timer_softirq at ffffffffad0faf47 21 [ffff9f2e21e03f68] __softirqentry_text_start at ffffffffad655f32 Fixes: 6eb54715b54bb ("qla2xxx: Added interface to send explicit LOGO.") 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_iocb.c | 10 ---------- 1 file changed, 10 deletions(-) --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -2392,7 +2392,6 @@ qla2x00_els_dcmd_iocb_timeout(void *data srb_t *sp = data; fc_port_t *fcport = sp->fcport; struct scsi_qla_host *vha = sp->vha; - struct qla_hw_data *ha = vha->hw; struct srb_iocb *lio = &sp->u.iocb_cmd; ql_dbg(ql_dbg_io, vha, 0x3069, @@ -2400,15 +2399,6 @@ qla2x00_els_dcmd_iocb_timeout(void *data sp->name, sp->handle, fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa); - /* Abort the exchange */ - if (ha->isp_ops->abort_command(sp)) { - ql_dbg(ql_dbg_io, vha, 0x3070, - "mbx abort_command failed.\n"); - } else { - ql_dbg(ql_dbg_io, vha, 0x3071, - "mbx abort_command success.\n"); - } - complete(&lio->u.els_logo.comp); }