From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f13.google.com (mail-pj2-f13.google.com [74.125.227.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 036264E73AA for ; Mon, 28 Sep 2026 15:19:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790608787; cv=none; b=SXSDuELul5YMucbNLoEkJUIo+NCLADV3cENIubWxvt6yBgZPrhPl6u/pe8LFqFRpI+KcdFpecJJu/WNFeJPITijguTEGH8QACI02o+Io9RbG33O/Nky6jbbVe4WalBZIk255kPz7937tNJz7DwxBVeRK1flcq8TNulGcmkjEc4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790608787; c=relaxed/simple; bh=qFYBnXNYmhhsHxNx2COBADOmOdhhnVq5vY9GOOKIOJ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=N33jEXk5YfKE2zV+3nECxOFJy6s9/Tr0rpUSKc2porOO0B8myQ0h7QAiH3pp81Zj25yELvVI4L+Vtqhqq04VPB++aaJgxgmDu5ULN1WUoE9tYXs2hMP7QHHnexVmXfHHFyoJpal+I7YanCBRkm5UlZAdbM3FAIy7bk38PDD4g9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Mcv3pLez; arc=none smtp.client-ip=74.125.227.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Mcv3pLez" Received: by mail-pj2-f13.google.com with SMTP id 98e67ed59e1d1-396ccafb751so1507194a91.2 for ; Mon, 28 Sep 2026 08:19:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790608784; x=1791213584; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=h2+B+TCtU6LhjPX3KEHp5ZhDWyuT2oD8RctAdhdkStc=; b=Mcv3pLezAFyOR8F75xJ+N1J+sl5iObide+S4U96tO+DgnijX5Dmv30l2bJPwN1+1O/ aDuzJbHgkNaz0lfw14o/KwYbNznQUu7xfoxAvpVI93mnAYbKzBCw1eNQDku74CY+HfZZ PW4KSnS4CPVrTmns0V/auUXCoQVjg+oAMiGULt1W0MA2xWn7cLmEQSDCHD855uvtV9X3 gmimRXAP+b8P5tg4Y1swbLZRAvkFTJbDFLJEEFCREXen1/VjjyUloPUHnLfUPQXAU4AV 74V9RqUw2P+Fwuuwm6XSQxgYih2pRhfqAVjfgoKGuEwYAv6/0uviPGmqijunI+77tcYn bP3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790608784; x=1791213584; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=h2+B+TCtU6LhjPX3KEHp5ZhDWyuT2oD8RctAdhdkStc=; b=ckggruFThw7wcTz4OfU2tH1K8K0oQaeExkkG8RF0knCokeEohdBdnKU7IbyQE3x2Wy gUIINNBrPI73Xo/DB9BTEhnD/biZ6fGwG9cIYTMk96s4sEiTJpesfz989mb+b6gf3VVk vvzuVAuZWY4XTxzbSkrvg1U4No7qqTLuqrhocM6PpByTeKSKJW2RiwnhQ9J7tHiAGn2M U4D4rO7jG1KxwSDd6QuzWB5txGn1/zUYKcS//CVYSPV33XLZldsbL12S82v1xuSGkb9y WVVYE92NoZogFgNtYZzQkazCZ75FtD7n939Ie1kKV/shsMEGCo3EwaZufMru5hQWBLM/ H84g== X-Forwarded-Encrypted: i=1; AKwUvBzi6s3JxxS4YFiPu0C7UMp0v7A/gqpIcEqaCbobTA7lgZRDoKK/GCrKBEmLC7JaSclMIzrWSquI@vger.kernel.org X-Gm-Message-State: AFq9FYKr24pCQ66zU0T/N+DkS2jAoNOQSOqXIiCMrCm2aNFVOu5u+O04 AFN6VnwVVUM6tqQ2fLY/9kErsokvpyKL1S1stxc6I+cbvCI3aAWBcCsz X-Gm-Gg: AYBFou2JTBGiiMl1v7+S7+QYmQuq/C4spvvqLlG7VqcyHW08KcaGJYP/MfY5NbNr9Zj TpifZQqp59/B0aCLxcJ17Ikm3gx/VPzE8G8kss+veQ7uac5DmfajvhyAVOzsAG3LwWcljqnGgVn YeJwLtv7Sc81W/ySLpTgOf4ppPGFeqveSNQ76VRy9LC4pKGUldZwPY7cq0P1t1e2y3YDSfhW5P6 XKnSK49beA6oxOn6UQ1EBkYcBClmGSLxFKqgwrKCMl4tdigdkUMuDLrpdo4YbEKjf5583IC82bB E8QlET552H+n7/QlaBNhwoeL1+cOFhma79lZd7izicdocuKNnON2PRiMx8e4wo+kdAvRpXUf3By J4YHSrulF87emAPBiJFYRcO/LUgMqsRW78uVphtPPyC15gg319HNheDM3yfM6Ob+WshjcjwGBOG lYHBv2V1okCVMLFvLXy8pLGKwxjC6HxLvqhcxfccVVGFEtI0BRFSZC8Tn21H3NzDyo3zUcg2Dlp DT0+mKzGP8kIIJamh4iIcho1yhRiM0OAnT6HKay7Ua+H3YmnwdYlWyIRkrU0ZJsgcGRbFs2zfee ZEP4OWNNyVEILZG6iW+WWHGlhBm8E2ybKfFmot1Hww6XLxiGQZk46sGLuyY= X-Received: by 2002:a17:90b:3908:b0:3a0:c20b:2fdf with SMTP id 98e67ed59e1d1-3a0c20b3132mr6450444a91.17.1790608784281; Mon, 28 Sep 2026 08:19:44 -0700 (PDT) Received: from spider.bream-herring.ts.net ([103.6.151.236]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a0b9feddd0sm7247965a91.2.2026.09.28.08.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2026 08:19:43 -0700 (PDT) From: Matthias Goergens To: Christoph Hellwig Cc: Andrew Morton , Chris Li , Kairui Song , Johannes Weiner , David Hildenbrand , Michal Hocko , Shakeel Butt , Kemeng Shi , Nhat Pham , Yosry Ahmed , Youngjun Park , Baoquan He , Barry Song , linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-api@vger.kernel.org, Alejandro Colomar , linux-man@vger.kernel.org, Karel Zak , util-linux@vger.kernel.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Simona Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, "Rafael J . Wysocki" , Pavel Machek , Catalin Marinas , Will Deacon , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Shuah Khan , linux-kselftest@vger.kernel.org Subject: Re: [RFC PATCH v2 0/4] mm/swap: reserve swap areas for deliberate offload Date: Mon, 28 Sep 2026 23:19:34 +0800 Message-ID: <20260928151934.2686418-1-matthias.goergens@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: <20260926045517.3458413-1-matthias.goergens@gmail.com> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Christoph, > Either way block devices must be safe to be called from paging paths, > not just for swap but also for file system based paging. So this is > a bug in the implementation, and not something worked around in the > swap code. Agreed that a backend used for paging has to make progress under pressure, and the zvol example was a poor lead. The series isn't meant to excuse a backend that can deadlock; that would still be a bug to fix in the backend. What I'm after is different: backends that are correct but need memory to accept a write, where the better policy is to use them for cold-page offload when memory isn't tight and keep pressure reclaim on areas that don't need to allocate. Two in-tree examples: zram allocates on writes and fails with -ENOMEM, with no fallback, while its logical size still shows free slots; and filesystem swapfiles must give up copy-on-write, checksums and compression today, because swap writes bypass the filesystem. I'll make that the case for v3 instead. Thanks, Matthias