Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2018684imm; Thu, 24 May 2018 04:36:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoqtnc/6gBDw/ANvRPIWkamTvNYxp0tUlP/rG7b6AyLGGChLoJnN3QUaCKgpZCJNLkN4JVX X-Received: by 2002:a17:902:26:: with SMTP id 35-v6mr7308364pla.104.1527161797726; Thu, 24 May 2018 04:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527161797; cv=none; d=google.com; s=arc-20160816; b=ExnmB4HLy3LpUNx/7618aOE/seDkg1Fzpnrm2KwCf2zCX2M9UWdp9oMGreJkM6HI5n 9CI+3VDJpms9OtsFAQM9CRvetWA8VxiiNjauLVNn4ljDZQ0lWs596Kt+/L9nDLhMUuas jknT3B8ucKQgrLk7Nq9HyJfUL1WJc2awOHSIzTh81KvNqEx7B+4o6IVxjSmgc2Mo1Ode d+2l2w2FBYTVccoBxGDTNla9x0faqPz4ZSM5ywQzJOgDVWY08V6UyG26c10pb/p0BoPL XZhD2hZXPCXhrOQXPdDAQd+Z1AAzN3zrVca5jYJcarTUYqsKHPO8eqTgxtXJTxC7z+qc Zqdw== 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=/pP7Crt3JE0sQ5sb7YzULT0Y/+Ug/DeLsyUATcf8pOw=; b=coercuq51C0bDv0KQ+hXCycc+oFm0SgLUrYsdKmXQi2g27dkI5p/TdqcbP7S1YOMPp /z5UXxkYsmoYBDFHP5gFgEFfl8lDyucqZuVGdP9R2X98DE4vShulVHlw0yiIRdaubLkv rZ1XOUVYRS+nJwwjmuVmvjSAA9r10wy8uQJFsxX/qeuX2LQ+FAw4iuEuRD6PBbAXfAEI uaba7UqJhIAN396uG9W+oyB1dL+VgZlG7eULJgK3u+VARt/zRRY52L+S/Az73TdkrRAE z1si3LyAOkvarYWxzsCU5OxB8hjCLDVaM52yDyVyfe2QFb3NxMdzqCnR++ASKpaEJowZ lXiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m8YqvnT7; 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 i1-v6si16470552pgq.327.2018.05.24.04.36.23; Thu, 24 May 2018 04:36:37 -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=m8YqvnT7; 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 S967512AbeEXJuA (ORCPT + 99 others); Thu, 24 May 2018 05:50:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:39254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967432AbeEXJts (ORCPT ); Thu, 24 May 2018 05:49:48 -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 9E34A208A0; Thu, 24 May 2018 09:49:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155388; bh=fPvlekPcuc+LH1d0/iBLvgnDRjFkCkt+s1sXDsrG6v8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m8YqvnT7NUyn1Jpm6ItN+SiRJklhtryA9Qmx+CO/2qp06gJAuHRuf0bUULzZJPaSN YhcOcsAUorPLJq5hBsNaYpxcME4mc4Np6vCQBhN3bkn6FUr+l88zQjKxtIgeIbEkZ1 6QJ4hhFpgVVMTz/y+sjez7YpapL7wBaR2NLD86NI= 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.9 60/96] scsi: mpt3sas: Do not mark fw_event workqueue as WQ_MEM_RECLAIM Date: Thu, 24 May 2018 11:38:43 +0200 Message-Id: <20180524093608.904820655@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093605.602125311@linuxfoundation.org> References: <20180524093605.602125311@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.9-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 @@ -8853,7 +8853,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__);