device: do not pull device present state from hotplug events
authorFelix Fietkau <nbd@nbd.name>
Tue, 3 Sep 2024 08:11:26 +0000 (10:11 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 3 Sep 2024 10:02:02 +0000 (12:02 +0200)
commit595094f5c213fa301b0304c1e0732811740b4db6
tree0b8a51bd61967f8eeb8b42197b6d4f808d6cf519
parentb7b294266781089242e24ee449539f0635e9f7c3
device: do not pull device present state from hotplug events

Use hotplug events as trigger for system_if_check instead.
Fixes a race condition in event processing

Signed-off-by: Felix Fietkau <nbd@nbd.name>
device.c