OSDN Git Service

mm/damon/lru_sort: enable and disable synchronously
authorSeongJae Park <sj@kernel.org>
Tue, 25 Oct 2022 17:36:49 +0000 (17:36 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:01:27 +0000 (15:01 -0800)
commit7a034fbba3361e94956431d17660d7c5674d13c3
tree81fbae2cd19f703dcd5600a0a9921d3c52054b8c
parent4cc0ee7787d7dc595752a8de2e073efa68f7c965
mm/damon/lru_sort: enable and disable synchronously

Writing a value to DAMON_RECLAIM's 'enabled' parameter turns on or off
DAMON in an ansychronous way.  This means the parameter cannot be used to
read the current status of DAMON_RECLAIM.  'kdamond_pid' parameter should
be used instead for the purpose.  The documentation is easy to be read as
it works in a synchronous way, so it is a little bit confusing.  It also
makes the user space tooling dirty.

There's no real reason to have the asynchronous behavior, though.  Simply
make the parameter works synchronously, rather than updating the document.

Link: https://lkml.kernel.org/r/20221025173650.90624-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/lru_sort.c