]> git.itanic.dy.fi Git - linux-stable/commit
s390/cio: dont unregister subchannel from child-drivers
authorVineeth Vijayan <vneethv@linux.ibm.com>
Sun, 25 Apr 2021 08:41:59 +0000 (10:41 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 31 Aug 2021 12:54:14 +0000 (14:54 +0200)
commit2297791c92d04a154ad29ba5a073f9f627982110
tree5a34756d41558f71c65d483b65a6f2a9e8df5de7
parentc7a5238ef68b98130fe36716bb3fa44502f56001
s390/cio: dont unregister subchannel from child-drivers

The devices owned by the parent-driver (css) was getting unregistered
from the io-subchannel driver is clearly a layering violation.
Remove the subchannel unregistration from the child-drivers.

This also means, if the device connected to the subchannel is not
operational, or not accessible, the subchannel will not be unregistered.
Instead the CIO layer will allow valid subchannels without any operational
devices in sysfs. And the userspace tooling might need to be modified to
optimally handle this new situation.

Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/cio/blacklist.c
drivers/s390/cio/device.c