Commit 3f4cf6e7 authored by Committed by Martin SchwidefskyBrowse files
[S390] cio: Avoid machine check vs. not operational races.
There was the possibilty that an action like ccw_device_set_offline() triggered by a device gone machine check might trigger a not oper event. Unfortunately, this could lead to the situation that we tried to unregister a subchannel twice: Once from the slow path evaluation, and once via the not oper event. Fix this by always using the same mechanism (css_schedule_eval()) for triggering the unregister. This makes sure that unregistration will only be done once. As an added bonus, it also simplyfies the code. Signed-off-by: Cornelia Huck <firstname.lastname@example.org> Signed-off-by: Martin Schwidefsky <email@example.com>
Showing with 21 additions and 127 deletions