Commit 5fb6b854 authored by Committed by Martin SchwidefskyBrowse files
[S390] cio: Only register ccw_device for registered subchannel.
There is a race between io_subchannel_register() and io_subchannel_sch_event() which may cause a subchannel to be unregistered because it is no longer operational before io_subchannel_register() had run. We need to check whether the subchannel is still registered before the ccw device can be registered and just bail out if it is not. Signed-off-by: Cornelia Huck <firstname.lastname@example.org> Signed-off-by: Martin Schwidefsky <email@example.com>
Showing with 12 additions and 6 deletions