This work is inspired by the recent report on linux-nvme mailing list. disk-activity trigger not working for nvme disk: http://lists.infradead.org/pipermail/linux-nvme/2019-July/025253.html This LED block device activity trigger works with any block devices. Akinobu Mita (2): leds: move declaration of led_stop_software_blink() to linux/leds.h block: introduce LED block device activity trigger block/Makefile | 1 + block/blk-ledtrig.c | 219 ++++++++++++++++++++++++++++++++++++++++++++++++++ block/blk.h | 13 +++ block/genhd.c | 2 + drivers/leds/leds.h | 1 - include/linux/genhd.h | 4 + include/linux/leds.h | 2 + 7 files changed, 241 insertions(+), 1 deletion(-) create mode 100644 block/blk-ledtrig.c Cc: Frank Steiner <fsteiner-mail1@xxxxxxxxxxxxxx> Cc: Jacek Anaszewski <jacek.anaszewski@xxxxxxxxx> Cc: Pavel Machek <pavel@xxxxxx> Cc: Dan Murphy <dmurphy@xxxxxx> Cc: Jens Axboe <axboe@xxxxxxxxx> -- 2.7.4