kernel: make ledtrig-netdev use a work queue for updates
authorFelix Fietkau <nbd@nbd.name>
Sat, 14 Jan 2017 21:29:05 +0000 (22:29 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 16 Jan 2017 08:52:59 +0000 (09:52 +0100)
commit0b2991a8ed32b5d9ba0a7c3441a72e1c1a1c4fde
treee78cde85983de1f41ba4f171f3bab4b4c828b555
parent9c55dede26aa488a9010eae4aa2b9d9b29b3fb2f
kernel: make ledtrig-netdev use a work queue for updates

This fixes hangs in igb that happen if the update call interrupts an
already existing dev_get_stats call. In that case the calling CPU
deadlocks because it's trying to acquire the same spinlock recursively.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/generic/files/drivers/leds/ledtrig-netdev.c