All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey Senozhatsky <senozhatsky@chromium.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: mm-commits@vger.kernel.org, richardycc@google.com,
	minchan@kernel.org,  bgeffon@google.com,
	senozhatsky@chromium.org
Subject: Re: + zram-do-not-slot_free-written-back-slots.patch added to mm-hotfixes-unstable branch
Date: Fri, 20 Mar 2026 11:33:46 +0900	[thread overview]
Message-ID: <abyxpYQNHD0sZLVd@google.com> (raw)
In-Reply-To: <20260319224457.488D2C2BC9E@smtp.kernel.org>

On (26/03/19 15:44), Andrew Morton wrote:
> The patch titled
>      Subject: zram: do not slot_free() written-back slots
> has been added to the -mm mm-hotfixes-unstable branch.  Its filename is
>      zram-do-not-slot_free-written-back-slots.patch
> 
> This patch will shortly appear at
>      https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/zram-do-not-slot_free-written-back-slots.patch
> 
> This patch will later appear in the mm-hotfixes-unstable branch at
>     git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
> 
> Before you just go and hit "reply", please:
>    a) Consider who else should be cc'ed
>    b) Prefer to cc a suitable mailing list as well
>    c) Ideally: find the original patch on the mailing list and do a
>       reply-to-all to that, adding suitable additional cc's
> 
> *** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
> 
> The -mm tree is included into linux-next via various
> branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
> and is updated there most days
> 
> ------------------------------------------------------
> From: Sergey Senozhatsky <senozhatsky@chromium.org>
> Subject: zram: do not slot_free() written-back slots
> Date: Thu, 19 Mar 2026 12:44:56 +0900
> 
> slot_free() basically completely resets the slots by clearing all of its
> flags and attributes.  While zram_writeback_complete() restores some of
> flags back (those that are necessary for async read decompression) we
> still lose a lot of slot's metadata.  For example, slot's ac-time, or
> ZRAM_INCOMPRESSIBLE.
> 
> Do not slot_free() on writeback, instead clear only those flags/attrs that
> we need to clear.

Hello Andrew,
I just sent a v2 with updated commit message [1]

[1] https://lore.kernel.org/linux-mm/20260320023143.2372879-1-senozhatsky@chromium.org

      reply	other threads:[~2026-03-20  2:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-19 22:44 + zram-do-not-slot_free-written-back-slots.patch added to mm-hotfixes-unstable branch Andrew Morton
2026-03-20  2:33 ` Sergey Senozhatsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=abyxpYQNHD0sZLVd@google.com \
    --to=senozhatsky@chromium.org \
    --cc=akpm@linux-foundation.org \
    --cc=bgeffon@google.com \
    --cc=minchan@kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=richardycc@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.