mm/damon/core: fix a comment about damon_set_attrs() call timings
authorSeongJae Park <sj@kernel.org>
Thu, 7 Sep 2023 02:29:26 +0000 (02:29 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Oct 2023 17:32:21 +0000 (10:32 -0700)
commit27e68c4b0d5a945d975140315332ea2e7aa2c57b
tree1836cc1792e70e3b14d6c84b7c18442846fd3693
parent46158bf211bd557cb7849ff747a5a94d82cd4aa8
mm/damon/core: fix a comment about damon_set_attrs() call timings

The comment on damon_set_attrs() says it should not be called while the
kdamond is running, but now some DAMON modules like sysfs interface and
DAMON_RECLAIM call it from after_aggregation() and/or
after_wmarks_check() callbacks for online tuning.  Update the comment.

Link: https://lkml.kernel.org/r/20230907022929.91361-9-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core.c