From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (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 DD9C2134CCF for ; Wed, 17 Jun 2026 03:46:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781668021; cv=none; b=KncYY8HOqqi9+ZrDAPfn1OarbziQr1CEZQxxDHhcqKDM+If8eFq3YFg35IHHInCbOHBwwkO/UmfjdWwGB+s03/r3VrtiaZDLgl/5La71gYcBkAXtzpRaNMBLN2IOv0owyX2GsanUroqAwpxLSljuRRNZX4I9740vqB4Etgyqihc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781668021; c=relaxed/simple; bh=MlLmcMBEpf5VC/HPStHpAv6eNdh0B2xImW6HcxFKVZE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PSAfIs0OIUUDaBWgRyigsGeP79dq9RAfWmyWgAilR3N+K46+qFzTi9GsdzpQatcK46hBNfrQOkKA2LNq6ceInbbYWB9HJgWp4KPLegQ0ADeNWTyRqyKF2xXs7QCIdCCfgM03SFvBNgsBZGE2G6jhiEluOnvgTgE8bHHgcHEfGdY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=nGOeQ5oz; arc=none smtp.client-ip=209.85.216.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="nGOeQ5oz" Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-36b9033d230so302652a91.1 for ; Tue, 16 Jun 2026 20:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1781668019; x=1782272819; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=pK4PQ1902R80gheBMlvl0pQHw4MWAl4a6tgY9EExy9w=; b=nGOeQ5ozKMqgwTKS+VuZ6H8mJ67TnC6ajNByl+jFoaylGo9IHJwbzAhER3HKigDG5+ a/QQlxzfpD+cGpmzuOzJ7LUqosaQo/PXTLpuUmySKzUbEZ9ke9xBmOFs4s3x+L+ZBvkD S1ByYnU1K+EdlNwDufopeih7p+5Gwq4UMnuBM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781668019; x=1782272819; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pK4PQ1902R80gheBMlvl0pQHw4MWAl4a6tgY9EExy9w=; b=BJ7IkUQBecW3KWq7EMduJKX25Jk3D/shFYwTky8geEtXhTsTjot+7iS9nd7BLRCGnb AB2jl/XcX8UkToP+D93i1CVyUpBS1ZsNi+a1DFLNWXc7WUpg9x7wPmm9pSHaHb0FGo7p 2bsWiBanw57cGl1XiNe0vbnsBv7c/VGdRe3IvTMxhmgh7kN1KhlgEyO7Yh0mdt582r0T IWsgz914AnRH+oQ9hh/rdsTnNZsAkyel/oJSH9z2onNgNXBkhmDZIbztVP05s3QwHXjj SCEfsnYae7HtRQ1CfpAi0M3nqvCS9Fc7Id79gClDACF3T1vx2k6mIpGqi7oK/UFz4cI0 v0hQ== X-Forwarded-Encrypted: i=1; AFNElJ+SYQp8sixq8f22uFFtBEtb8dEVyv/fnkKHM4ciL9C6Jy2xBh1EJ/TS9bFdM+dG4GhPfmD0NRRhfaeSaT8=@vger.kernel.org X-Gm-Message-State: AOJu0Yxp+8uAG4noE/FpMQwbNDxKxXLZ46RUNpMT+FgIYJwP8JHOqFyB Qb5A8i8n8ckluOtE9TWce7CzYRmmJYVoVko/J8cG0SogGRX3IUbUF0mP4njxiN/fKg== X-Gm-Gg: AfdE7cnJxeXC2Y+FrA6PZVybHyYBBnxJPS7PEEds6ckziRPBtaXqZ37uOFAb8HNC5FX KGXzkWdpFWgpOSY7QgImrWzTWuqmKkvdaEQ0RJqOv4vApEucUJM6eFaRp6LCqcWB5NeVoy1NkTc uqcR51LAXuVoxe8O2UCLmO+GvJ/YJuHUj8zmKiNmZrARF6rIXiSShhWDjIaDZtmUUxbELixI6JN fxZIdn9YZEPmq4l2fFgcStLr8eBqDF6gLs2a//+nNpKL2HBFX0dskamSb5ac3b4Is5pdwu1T2Rn 3GpaKHvAJI9N9DRojnlV0nkW2hs7/4Bw1jsBZti5Zas1EnIWeLKFRytBu73r9ERoBbzHlOaS31t Z/9VX1+tRpkS0St2gbhAgk/cYYbiKWDqbJY+teJONpnYRDx4bSlbdqqGuvG6vZ9aXYQjtCCQ85R Vm63+fbccxfEvsU/mcaYJYz033wN6q3MAENogqE2wlnecxYHDmuzk= X-Received: by 2002:a17:90b:350b:b0:369:9469:aeba with SMTP id 98e67ed59e1d1-37ca6843e76mr1031173a91.1.1781668019333; Tue, 16 Jun 2026 20:46:59 -0700 (PDT) Received: from google.com ([2a00:79e0:2031:6:a0b:fabb:5b62:b85b]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-37c521cac5bsm4446256a91.5.2026.06.16.20.46.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2026 20:46:58 -0700 (PDT) Date: Wed, 17 Jun 2026 12:46:53 +0900 From: Sergey Senozhatsky To: Jianyue Wu Cc: Christoph Hellwig , Andrew Morton , Chris Li , Baoquan He , Nhat Pham , Barry Song , Kairui Song , Kemeng Shi , Youngjun Park , Minchan Kim , Sergey Senozhatsky , Jens Axboe , "Matthew Wilcox (Oracle)" , Jan Kara , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-doc@vger.kernel.org, Brian Geffon Subject: Re: [PATCH 0/3] mm/zram: route block swap I/O through swap_ops Message-ID: References: <20260614-zram-swap-ops-block-register-v1-0-6c1a6639c222@gmail.com> <20260616123646.GB21024@lst.de> 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-Disposition: inline In-Reply-To: Cc-ing Brian On (26/06/17 11:38), Jianyue Wu wrote: > > I fear this is going entirely in the wrong direction. > OK. I was trying to build on your swap_iocb / swap_ops rework > for the zram swap path, but I take your point that compressed swap can > be handled more nicely. > > > Yes, we have to keep zram around as a legacy interface for now, > > but the right place to deal with compressed swap is in the core. > I agree compressed swap belongs in the core is better, so not only ram, > but also the block layer can use it. > > Before I rework or drop the RFC, could you outline how you see that > core-side model working? In particular: > - How should a compressed backend like zram or future block device > plug into swap_iocb / swap_ops? > - What role do you expect zram to keep while the legacy block interface > remains: current block swap only, or something else? Those are fantastic questions, thank you for asking them. Can we elaborate on zram being a "legacy interface"?