block: allow remove hotplug event to arrive at blockd
authorDaniel Golle <daniel@makrotopia.org>
Fri, 23 Jul 2021 22:20:43 +0000 (23:20 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 23 Jul 2021 22:35:37 +0000 (23:35 +0100)
commit5114595bc37e441a905db6b05b4487ad67fcb3d1
tree8dcef8e9daba947c598babcb0af7d3bb1ac79eeb
parent9ab3551c64620a3a5c79bcdcfb270890b4e6cf1a
block: allow remove hotplug event to arrive at blockd

As the hotplug event fires after the device has been removed, it will
never be found by _cache_load(). Hence the 'remove' event needs to
propagate in all cases and we only need to populate the cache in case
of 'add' events.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
block.c