Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1978708imm; Thu, 24 May 2018 03:57:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpV5CyrKUwDlMQxcTs5HMIj3jo+qimMBvZar2DV2LvpaI9EkXbsIY3/vvhMz9V1ZjrHvHLS X-Received: by 2002:a63:6b43:: with SMTP id g64-v6mr5410169pgc.337.1527159456971; Thu, 24 May 2018 03:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159456; cv=none; d=google.com; s=arc-20160816; b=sCoRosg2+y/zEp94KT/7YZDWd5f2FbNs2ebMcysl25zMR8q3+nXBFG4Ik/kyemAgHz R5kbulqbOoLzw9doasfjGLTQyzws/Qvts6tj+9V1BQNlSTuYbH/iWBtyQHz3wAF4bsQ9 N/WJ360XJ5/cxKwEAiu8D4MYTNp7VfEFcD3+3+sUe32H2NZdKTdmHEAkOiBeWFUZjbtR MB/CD331k27NSZg2E/cht51xGsKRKPXbOGem7OPf+lzacBDjOX7BkJ6uTAutdui1HgDJ /+Jckl8F/eGhy2MqDveTsrHFScE5x6XLs3i7V3Yj2ApoSFdXt5+d9CA+8237HOJkyLvM PZlg== 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:dkim-signature :arc-authentication-results; bh=ZIxot/qDE3rnTQQX3CSWm7qtcOCND7SuWdn6Tvmowek=; b=Zz4vW4sMZVz9kzGSRaAeJXTq8LMPoYFrKmZ79AV9xdnXdPWebqbgQKqGdCjqgaYeb5 ZuyQA78SULmV5o01Up/bFWpqdO17Ks1rXEyGkpBCfBHKRg5dF/7L6nNAeWvf2v4do8ky 4646HjDMQkh7upkvysfpiD1bxVBkeEuggPhLIWwm6SRLEBL8VtSJTF2a/HxxiJ+C5C/R 3jOawffAsBRSkzhRWDqBdr8Ceh3e4RGHJ4JDg8KXYLJFIZx4sw8km8ulQQTxgeaMdqTl a/1uuzW12zgJAneWfVe8X5HMoku/C7R6aj3sytbh6mrEqTSbKAEgmWv7KkH8SnYPdvpe /YLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sYXCqmqL; 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 o12-v6si20941402plg.463.2018.05.24.03.57.22; Thu, 24 May 2018 03:57:36 -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; dkim=pass header.i=@kernel.org header.s=default header.b=sYXCqmqL; 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 S1030310AbeEXJ40 (ORCPT + 99 others); Thu, 24 May 2018 05:56:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:36224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030288AbeEXJ4T (ORCPT ); Thu, 24 May 2018 05:56:19 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 69FD120893; Thu, 24 May 2018 09:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155778; bh=WG+iaN/HTycE1QgfUwfweiPfsCJlWXxGJz/uIfqUrcI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sYXCqmqLgrgZXibqYJs0PAmjpWqWs4ovZnsU859vhYTbKGXVc/mYu2P1OjSLZPxZf sQb7OAhcQEaLdRn/koN/zBOpNBy22QK4MhLqeU/OFkjP4jri23mZPezHTccBXtdygv LFNkW2YZ6RKhrMHdom+tHlLz5crx35h7eMp3xrNo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sreekanth Reddy , Suganath Prabu Subramani , Sreekanth Reddy , Hannes Reinecke , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.14 112/165] scsi: mpt3sas: Do not mark fw_event workqueue as WQ_MEM_RECLAIM Date: Thu, 24 May 2018 11:38:38 +0200 Message-Id: <20180524093626.554550165@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@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: Hannes Reinecke [ Upstream commit 864449eea7c600596e305ffdc4a6a846414b222c ] The firmware event workqueue should not be marked as WQ_MEM_RECLAIM as it's doesn't need to make forward progress under memory pressure. In the current state it will result in a deadlock if the device had been forcefully removed. Cc: Sreekanth Reddy Cc: Suganath Prabu Subramani Acked-by: Sreekanth Reddy Signed-off-by: Hannes Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c @@ -8941,7 +8941,7 @@ _scsih_probe(struct pci_dev *pdev, const snprintf(ioc->firmware_event_name, sizeof(ioc->firmware_event_name), "fw_event_%s%d", ioc->driver_name, ioc->id); ioc->firmware_event_thread = alloc_ordered_workqueue( - ioc->firmware_event_name, WQ_MEM_RECLAIM); + ioc->firmware_event_name, 0); if (!ioc->firmware_event_thread) { pr_err(MPT3SAS_FMT "failure at %s:%d/%s()!\n", ioc->name, __FILE__, __LINE__, __func__);