DAMON development mailing list
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "SJ Park" <sj@kernel.org>
Cc: damon@lists.linux.dev
Subject: Re: [PATCH 6.1.y] mm/damon/core: don't skip damos_adjust_quota() while esz is not zero
Date: Sat, 03 Oct 2026 17:56:15 +0000	[thread overview]
Message-ID: <20261003175616.156391F0089C@smtp.kernel.org> (raw)
In-Reply-To: <20261003155119.28683-1-sj@kernel.org>

> DAMOS could unexpectedly stop working when a user disables quota using the
> online parameters commit feature.  Fix it by correcting a wrong quota
> unset check in damos_adjust_quota().
> 
> DAMON users could disable all quotas by unsetting time and size quotas,
> and removing all quota goals.  The intention of disabling quotas would be
> making DAMOS run at full speed.  When such quota disabled setup is
> detected, damos_adjust_quota() skips all its work.  The skipped works
> include effective size quota (damos_quota->esz) updates and charged quota
> amount (damos_quota->charged_sz) resets.  The intention is to avoid doing
> unnecessary work when quotas are disabled.
> 
> However, users could do the setup while effective size quota is non-zero,
> by doing the disabling with the online DAMON parameters commit feature.
> In this case, because the effective size quota exists, DAMOS will keep
> [ ... ]
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> Reviewed-by: Kunwu Chan <kunwu.chan@gmail.com>
> Cc: <stable@vger.kernel.org> # 5.19.x
> (cherry picked from commit 52ae167ce16609c7e6fffef588b3c2c26de2db19)
> Signed-off-by: SJ Park <sj@kernel.org>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261003155119.28683-1-sj@kernel.org?part=1


  reply	other threads:[~2026-10-03 17:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2026100319-silent-lark-6245@gregkh>
2026-10-03 15:51 ` [PATCH 6.1.y] mm/damon/core: don't skip damos_adjust_quota() while esz is not zero SJ Park
2026-10-03 17:56   ` sashiko-bot [this message]
2026-10-04 16:29   ` Sasha Levin

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=20261003175616.156391F0089C@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=damon@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=sj@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox