alias: Set alias link device status to disabled when device is removed
authorHans Dedecker <dedeckeh@gmail.com>
Wed, 29 Jun 2016 12:02:18 +0000 (14:02 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 29 Jun 2016 13:37:30 +0000 (15:37 +0200)
commit5df548d8edd3f9be39d409d1eeeaef99fbb27aa0
tree8a36614c1c99e774b52fbcd45ec0c1613ae3bb93
parent99e6dc68bbac5a57a0ebca810a9dc36e38667821
alias: Set alias link device status to disabled when device is removed

Fixes missing link state event propagation for an aliased device in case a new device is added
as the link state has the last known status of the old device possible resulting into
no link state change detection.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Acked-by: Felix Fietkau <nbd@nbd.name>
alias.c