Re: [PATCH RFC 0/4] leds: extend disk trigger
From: Niklas Cassel
Date: Mon Jan 26 2026 - 14:04:03 EST
Hello Ian,
On Mon, Jan 26, 2026 at 10:19:07AM -0600, Ian Pilcher wrote:
> On 1/26/26 3:00 AM, Niklas Cassel wrote:
> > But I'm not a fan of making the driver more complex.
> > If we want something more complex than what is already there, then it
> > is probably much better handled in user space, considering the amount
> > of possible configuration options.
> >
> > Basically the same argument as used in:
> > https://lore.kernel.org/linux-nvme/20220227234258.24619-1-ematsumiya@xxxxxxx/T/#u
>
> Niklas -
>
> Can you provide some links on how this might be done in userspace?
See the link to the thread above.
Ming suggests "tracking iostat in a fixed period, and triggering one
led activity if any read/write IO happens during 0.5sec."
There is also a link to an nvme-led-daemon in the thread:
https://github.com/scarlion1/nvme-led-daemon
But considering that it is using:
https://www.kernel.org/doc/Documentation/block/stat.txt
I don't see why it can't be used for any block device.
Kind regards,
Niklas