Received: by 10.213.65.68 with SMTP id h4csp450477imn; Tue, 13 Mar 2018 09:26:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELsO7JueeeG2gq0+bWK7AuUzGNt6TrRkHRtewf4lGfBP2pm3DGsd0q3WUa18+w57YfX7IomL X-Received: by 10.98.56.131 with SMTP id f125mr1184189pfa.190.1520958367843; Tue, 13 Mar 2018 09:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520958367; cv=none; d=google.com; s=arc-20160816; b=KwTj6660WgG/ih+6r+q7z6TVosHDhHW3fRC0+ApMHEIwEmaC8o6DpxFJCponcGEsmO W8s0CTH1xtsG1MjEujVzstCqbLSTnhZ6XjDE6kv0FF+WoQHPTFNOB5W0bU2yaFyLMOak LMHaWFEptJbdJBpecARZPbKZse91HWDHsywqUwt+FE7sDwtcmtsJaGRckb7YE0gB6LXq w/6JGGdn7vzthtl6KpOgkLMkH2IYurEnvINAzKMsJK8V01yNjyjJOh6ygAEfjk1Yos/i Vq7DVFU9Ep33JXu1GNDfTRIrSHEtre/9NeXO50flJqV4D4l3dv+ToB/9EFcdt2X03cwL QcjA== 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=SwRxACBLBgBCMAyYIDt3gAn+SeS/VDt+XQ50YnttU68=; b=aVHn3iU4VngdTpbRxDy3aV+w2aX04qbuIri3GuFmDr3xHXDZYQ5MhfuxPdzVcydgWL JGHRWuHM8qLcCwn8pgtU+Je2B/t9ruc1XPwmCB6N58l029DGMVuFtNpjjXBZFi15XZnQ Vr9I8MZHztgZXv3W8VdpZyRwCRKFXWWyZJgmjiZhLfy4lUdFQLikXZ4jS8lZeqOYtqG/ lYGUyTpuhoq1SgNZCmr4K+olloOVw8VccXq6R/tIK7gBDUNfNrcCdJNySaDxHdS8C4+V Ng0CkjiigjKRkhVPUKSKNcdKh9Ycoi+7xaqGoRZyuXi2/p7+sabVrRka2Z0qwYxau1Bf FzqQ== 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 u82si323462pfg.389.2018.03.13.09.25.53; Tue, 13 Mar 2018 09:26:07 -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 S933716AbeCMPeQ (ORCPT + 99 others); Tue, 13 Mar 2018 11:34:16 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60982 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933667AbeCMPeN (ORCPT ); Tue, 13 Mar 2018 11:34:13 -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 9CDB51024; Tue, 13 Mar 2018 15:34:11 +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 141/146] scsi: qla2xxx: Remove aborting ELS IOCB call issued as part of timeout. Date: Tue, 13 Mar 2018 16:25:08 +0100 Message-Id: <20180313152330.960707756@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 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); }