Commit 355721c7 authored by Koki Ryu's avatar Koki Ryu Committed by Richard Fung
Browse files

Add userspace notification for MGLRU generation creation



Add sysfs_notify in inc_max_seq function so that every time a new MGLRU
generation is created so that user space programs can notice that by
polling /sys/kernel/mm/lru_gen/admin.

BUG=b:245255700
TEST=Follow these steps:
- Open /sys/kernel/mm/lru_gen/admin and read it once.
- poll the fd you opend and wait for the POLLPRI event.
- Put some memory pressure on the kernel and see if the poll ever
  returns.

Signed-off-by: default avatarKoki Ryu <kokiryu@google.com>

Change-Id: I11023f002ecf235a9933bb87fbd3183e9b08a9ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3936130


Commit-Queue: Kameron Lutes <kalutes@chromium.org>
Tested-by: default avatarKoki Ryu <kokiryu@chromium.org>
Reviewed-by: default avatarCharles William Dick <cwd@google.com>
Reviewed-by: default avatarKameron Lutes <kalutes@chromium.org>
Signed-off-by: default avatarRichard Fung <richardfung@google.com>
parent e6d9e3af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment