Re: [PATCH] [RFC] Add support for uevents on block device idle changes

Kay Sievers
2009-11-18T19:31:46Z

On Tue, Nov 17, 2009 at 19:57, Matthew Garrett <mjg59@srcf.ucam.org> wrote:
> Ok. How about something like this? It adds an extra field to the stat
> file and introduces David's suggestion of making it pollable.

Hmm, while thinking more about it, I'm still not sure if we should add
an interface which can work for a single user only, and add a timer to
the kernel which is only used by a userspace policy thing.

Wouldn't it be good enough, if we add a file "idle_since" which
contains the time of the actual disk idle time, and userspace can
schedule a re-examination of that value at the actual end of the idle
time it is looking for?

Thanks,
Kay