Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3308620imu; Sun, 11 Nov 2018 12:04:59 -0800 (PST) X-Google-Smtp-Source: AJdET5f1aF3VrRY279okVQ0aIy79NBCdyr6F4MS8ATkyjxkCG1eFbHvs+ztYm2ENDccxHV08WFJb X-Received: by 2002:a17:902:6b87:: with SMTP id p7-v6mr17567149plk.282.1541966698961; Sun, 11 Nov 2018 12:04:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541966698; cv=none; d=google.com; s=arc-20160816; b=pJGKio/EJAHaYvPzbvAnOPf2+wqz+DCKHFb3S4AOLlM05MAOqaaKvmEo+RTUWiqGwf lvne6e0fRMZ718qvd4wJL9IM0J7e20PzAoALejQN8INUGRv5tKkBFsegZTMT2yjudU97 saAnMsEoDWSQq/g+6KyRthFNhI6AXIbdB32lRaEn4sfezRHTSQhNrDxAq7ztOGsdFYh5 G6ucJb0Apb08efVmxlybdL0ciSk75UvwWeIGn5yqpQLFa1IOV7iVG8rZom7t6PN+Erb9 JO8YqS7f0HisLc2maaYsWwFUpZOf7bAz89oZVtvJM7SNr1t1Ma5UpO0uc54wHtIO8aRr 67Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=bdqjTGynLxhy5Yvur2j6zBEBHBvgZsR9UZcCx+47IHo=; b=Q5V1TfSUSLrWISc8hnEB/IL8Bk5v2wKt5f8+z/yULTDVx6vNZaJPzQ80wrMogdoj6C PvwWP4D/DqmeathDT9P5bzvd3/YLiIiq+7N8VUM8K9bxUQyZOY9ojNGYkuLNruwrs6r3 Z6SWQbU8tIHWdNCA6AYLqIb1+PrSVNLNkiB18hgAqMkeDTmfdLp/3lsWuLEwMKnYp7lz IcOIOolpH+4HTIoe4ciRvKf0Rmh47QIeXfhUu47wgPltqVlW/Aj3igUaSzmQrT2VZk68 Hq3kxW1V+xoOuNx/vqyzhQbV149XsAOt+X7bsP+feDqvBAHe6hNIqnAP3GSJMQ/vX6oN LUlA== 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 y5-v6si8855303plt.109.2018.11.11.12.04.43; Sun, 11 Nov 2018 12:04:58 -0800 (PST) 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 S1730722AbeKLFsb (ORCPT + 99 others); Mon, 12 Nov 2018 00:48:31 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:51030 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726674AbeKLFsa (ORCPT ); Mon, 12 Nov 2018 00:48:30 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsp-0000l7-55; Sun, 11 Nov 2018 19:58:59 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsX-0001ka-AM; Sun, 11 Nov 2018 19:58:41 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Himanshu Madhani" , "Quinn Tran" , "Martin K. Petersen" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 270/366] scsi: qla2xxx: Fix ISP recovery on unload In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Quinn Tran commit b08abbd9f5996309f021684f9ca74da30dcca36a upstream. During unload process, the chip can encounter problem where a FW dump would be captured. For this case, the full reset sequence will be skip to bring the chip back to full operational state. Fixes: e315cd28b9ef ("[SCSI] qla2xxx: Code changes for qla data structure refactoring") Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Signed-off-by: Martin K. Petersen Signed-off-by: Ben Hutchings --- drivers/scsi/qla2xxx/qla_os.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -4963,8 +4963,9 @@ qla2x00_do_dpc(void *data) } } - if (test_and_clear_bit(ISP_ABORT_NEEDED, - &base_vha->dpc_flags)) { + if (test_and_clear_bit + (ISP_ABORT_NEEDED, &base_vha->dpc_flags) && + !test_bit(UNLOADING, &base_vha->dpc_flags)) { ql_dbg(ql_dbg_dpc, base_vha, 0x4007, "ISP abort scheduled.\n");