Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1559221lqe; Mon, 8 Apr 2024 12:30:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7RgUIZeY+iw724P/RZBoVCyZQFecWSH6WA23rgEwLLFT2B6jONf0W4EjmGGtUU87wiSVSLyorV4uZTdWKF+LvnH/M3IVHhKDg96W6pQ== X-Google-Smtp-Source: AGHT+IFYNakXMz1nU+t4YwG1BBx4/LUZkZuq4aMGdpwtDLGcyFb8ikKI0VUgVLCrsD9iTWPdfpBi X-Received: by 2002:a17:907:8686:b0:a4e:d5d:8fd6 with SMTP id qa6-20020a170907868600b00a4e0d5d8fd6mr7832367ejc.60.1712604608601; Mon, 08 Apr 2024 12:30:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712604608; cv=pass; d=google.com; s=arc-20160816; b=UgXJ9BCoATWWL+EXvZbS8UB97L3aOCM5FMHsb8ZKDkhwNOGbAGbAR6fgwyJYn09hmU dbCDLRTbmXxwpVunKErjZxH0EZmRcvdQaMXa0Ou9KvCtBxJMVUil9ieyF3ugvADDRf6i uIR18O4HA8OfF2tQ27FHdw8HXEx5njmMqX6UsdCvpQ8MQikd5kPIhfyT+m0K3AufXTqX oje0HZnS3ozP/Lh57t9l/yDFHEsRPqVh+r/XtgFza8vQkdNryYiaQeGamtwjYHEpwJqv SmyoGmRHCmRlstTXnEIUAaF8mWgcPlzyXDXG99TTACfDcgpftZaGzYtxTCUBdp/1Sq/e GEQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=69ok7juk8HY9S39Wub66Ms9+5DelV8WKuCWrWTFNHa0=; fh=LJu8AeKeiNfTfjT0N9IT0/EZYKSaCD/96fR+kE7NocM=; b=a/RtDye3UAGL1/GKgQe2jTJfoO3DaMcovqnt8UpGws48sdIeNTCXDNU7cecR48PnmQ 2MN1dnHSgnqgbh9zwaBrts6296PXv4cAsa/pQbBQJuQB/P+g4emrxuVQ7cW3QRLzpmi8 qvqyO2IVRcwoSHtLZTWuTLmkcg5hQw3ls45m9p+Ecqpz3ibgGQHtLp/Q3Vb/luCgFUKq Yu5OSsY/dO8SNhQUJ70/uoxthQezkGuCQYB17TDaN7bWfS1vBB2X1l7rJ/usCnPtG8YV trRM+BzzXEY64ftjN2fEu9KnAhsJrisQsJPAJ+b9x0RNLuLuucuXO16gT8omP5SIi+sh SKhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=bdozUmcc; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-135871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135871-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ck16-20020a170906c45000b00a51dd500070si834835ejb.139.2024.04.08.12.30.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 12:30:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=bdozUmcc; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-135871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135871-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 571541F2520F for ; Mon, 8 Apr 2024 19:30:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 120DB14600B; Mon, 8 Apr 2024 19:29:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="bdozUmcc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34DBF145B0B for ; Mon, 8 Apr 2024 19:29:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712604596; cv=none; b=ToEHLlY5Dj2cE0otF7jQdE2TPoAOXd7HH87QfHQ0W2fX+qd89N3zr0Cw2QwanDG9l+pH2A6MWujW32ii6binG3qBD9oC5n+RjMSzHNkYSjPk+OuLsvAC++GC1aq2Gc2C4PHLlKi6848S6hGWwvxZ5Hs7HNSu2gHJRaDBZA0Jn2A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712604596; c=relaxed/simple; bh=kQkMMTWJKJG0SE0NuG2h3ck1w6oNzr+kJSFaydlkQZU=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=hesCpAVRfmuYoXknm5Mq1vXosJCqbHk6QrdbMFKEXOZqKSqZHN446z1hyLvCSAuPQweir+qI+ekHuIMgON2psEIZrcuk4D3dIHataQ9joqvyBH76fB5suVQu5IWTXPIe7KymJZOimvjoBhCpPUXfZDBdwTpGIEzNcMsTob+nbGY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=bdozUmcc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 929C5C43390; Mon, 8 Apr 2024 19:29:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1712604595; bh=kQkMMTWJKJG0SE0NuG2h3ck1w6oNzr+kJSFaydlkQZU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bdozUmccnNh6Z4oM2QWc49IVIOjNECLXM5mZF+uyV6IDh0yhJpFUXbuTWdABlj9QX eFHsCWhTLCcJ1hpW9zOhnVsONVQ+7tclbZVHuPEHYnVlMSUUc7Alwq5eN+ZRor9no4 G01SiGu9MzsObRAG+M2FiyZsnTWniz4M1+cdvuDQ= Date: Mon, 8 Apr 2024 12:29:55 -0700 From: Andrew Morton To: Miaohe Lin Cc: , , Subject: Re: [PATCH] mm/memory-failure: fix deadlock when hugetlb_optimize_vmemmap is enabled Message-Id: <20240408122955.82183316d06cfe32fbacad0e@linux-foundation.org> In-Reply-To: <20240407085456.2798193-1-linmiaohe@huawei.com> References: <20240407085456.2798193-1-linmiaohe@huawei.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 7 Apr 2024 16:54:56 +0800 Miaohe Lin wrote: > When I did hard offline test with hugetlb pages, below deadlock occurs: > > ... > > Fix this by calling drain_all_pages() instead. Thanks. I propose Fixes: 510d25c92ec4a ("mm/hwpoison: disable pcp for page_handle_poison()") Cc: