Re: [PATCH v2 1/5] fs: kernfs: add poll file operation
From: Greg KH
Date: Fri Jan 11 2019 - 01:26:03 EST
On Thu, Jan 10, 2019 at 02:07:14PM -0800, Suren Baghdasaryan wrote:
> From: Johannes Weiner <hannes@xxxxxxxxxxx>
>
> Kernfs has a standardized poll/notification mechanism for waking all
> pollers on all fds when a filesystem node changes. To allow polling
> for custom events, add a .poll callback that can override the default.
>
> This is in preparation for pollable cgroup pressure files which have
> per-fd trigger configurations.
>
> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>
> Signed-off-by: Suren Baghdasaryan <surenb@xxxxxxxxxx>
Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>