Received: by 10.223.176.5 with SMTP id f5csp1010634wra; Fri, 2 Feb 2018 09:39:23 -0800 (PST) X-Google-Smtp-Source: AH8x226+5vWu0eM+Zi9LYgi8ALDNi+AjsAjZl9jHlB5Fce6lEQOQhpcZ0pe46F5SQ9idr5YEGujt X-Received: by 2002:a17:902:a515:: with SMTP id s21-v6mr4869937plq.393.1517593163699; Fri, 02 Feb 2018 09:39:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517593163; cv=none; d=google.com; s=arc-20160816; b=CwULVTSFXloTVgsBkinJCjFHbIPfB7/87PS2Qk8ZHnqmtbijIiO4voHElT3wvQmN1r nK0AuYy6vmShi8qvlGNIFfch0nLXOaB/04Pdabia8N/+nl1z9IggoQFOhc4NHSoY6UTf RpMy9iMEFtdJeL5k8jU0NfbofTQ7Qe6p/utxbK71RLUnfia8Zgb22cbqJaPQWyaLxJZ6 jVKeaaObijP+9Zkhfa2UUTghZQn3SpxhnUcMzEx7rbfPVrXSXPT0HBq84y389tns4bNe zoK13OFQ9LWFo1MC7LMCAhfdZKhI322JfjdezRI4BCRFKak0L41VczIWifR9Lux2+P7n n7BA== 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=WbiCjvlX015nc64MnQVHCHRCzGb/HlYn+bOEkqjAYrE=; b=FVZRS/yCnKu84V6gaWrE54f6UCzpd/kdMN91lwX0AYDe6R5W3YiylZxXClKPyr81QT NiKlmJQkj9maQwYxjmEeWy5WquvrIRTEv2JPBzur8PzYbsTqrDgKWq8Rqj5kaX+RJk76 DaX0E4hBdwzohRiVS0EE+JrwWfoGw3hHcIttT+6pKEbAqrzVo/gL9WzJv4qZipZb/Row m9iwZa1vbSQofSAttGke5MYvQFqsLARcAX81hL+wY9tW6cDtwW9b8aDdPUXWD6lZ53rN r5fzmDS+Jszc9JtMcsXJM621Wx0lp3F/NAaOLvFuuBbG/Omz4Vr1dT0hmlgj1lI/ecxM mckQ== 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 a24si1673840pgw.394.2018.02.02.09.39.09; Fri, 02 Feb 2018 09:39:23 -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 S1753445AbeBBRhd (ORCPT + 99 others); Fri, 2 Feb 2018 12:37:33 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:41106 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753013AbeBBRQx (ORCPT ); Fri, 2 Feb 2018 12:16:53 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6F985ED5; Fri, 2 Feb 2018 17:16:52 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Douglas Miller , "Guilherme G. Piccoli" , Raghava Aditya Renukunta , "Martin K. Petersen" Subject: [PATCH 4.15 25/55] scsi: aacraid: Fix hang in kdump Date: Fri, 2 Feb 2018 17:58:43 +0100 Message-Id: <20180202140828.807489255@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140826.117602411@linuxfoundation.org> References: <20180202140826.117602411@linuxfoundation.org> User-Agent: quilt/0.65 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: Raghava Aditya Renukunta commit c5313ae8e4e037bfaf5e56cb8d6efdb8e92ce437 upstream. Driver attempts to perform a device scan and device add after coming out of reset. At times when the kdump kernel loads and it tries to perform eh recovery, the device scan hangs since its commands are blocked because of the eh recovery. This should have shown up in normal eh recovery path (Should have been obvious) Remove the code that performs scanning.I can live without the rescanning support in the stable kernels but a hanging kdump/eh recovery needs to be fixed. Fixes: a2d0321dd532901e (scsi: aacraid: Reload offlined drives after controller reset) Reported-by: Douglas Miller Tested-by: Guilherme G. Piccoli Fixes: a2d0321dd532901e (scsi: aacraid: Reload offlined drives after controller reset) Signed-off-by: Raghava Aditya Renukunta Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/aacraid/aachba.c | 1 - drivers/scsi/aacraid/commsup.c | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) --- a/drivers/scsi/aacraid/aachba.c +++ b/drivers/scsi/aacraid/aachba.c @@ -918,7 +918,6 @@ static void setinqstr(struct aac_dev *de char *cname = kmemdup(sup_adap_info->adapter_type_text, sizeof(sup_adap_info->adapter_type_text), GFP_ATOMIC); - if (!cname) return; --- a/drivers/scsi/aacraid/commsup.c +++ b/drivers/scsi/aacraid/commsup.c @@ -1643,14 +1643,7 @@ static int _aac_reset_adapter(struct aac out: aac->in_reset = 0; scsi_unblock_requests(host); - /* - * Issue bus rescan to catch any configuration that might have - * occurred - */ - if (!retval) { - dev_info(&aac->pdev->dev, "Issuing bus rescan\n"); - scsi_scan_host(host); - } + if (jafo) { spin_lock_irq(host->host_lock); }