linux/drivers/s390
Vineeth Vijayan 6e7f06895d s390/cio: Update purge function to unregister the unused subchannels
commit 9daa5a8795 upstream.

Starting with 'commit 2297791c92 ("s390/cio: dont unregister
subchannel from child-drivers")', cio no longer unregisters
subchannels when the attached device is invalid or unavailable.

As an unintended side-effect, the cio_ignore purge function no longer
removes subchannels for devices on the cio_ignore list if no CCW device
is attached. This situation occurs when a CCW device is non-operational
or unavailable

To ensure the same outcome of the purge function as when the
current cio_ignore list had been active during boot, update the purge
function to remove I/O subchannels without working CCW devices if the
associated device number is found on the cio_ignore list.

Fixes: 2297791c92 ("s390/cio: dont unregister subchannel from child-drivers")
Suggested-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-10-29 14:03:13 +01:00
..
block s390/dasd: fix error recovery leading to data corruption on ESE devices 2024-09-04 13:23:15 +02:00
char s390/tty: Fix a potential memory leak bug 2025-05-02 07:44:34 +02:00
cio s390/cio: Update purge function to unregister the unused subchannels 2025-10-29 14:03:13 +01:00
crypto s390/pkey: Prevent overflow in size calculation for memdup_user() 2025-07-10 15:57:37 +02:00
net s390/qeth: Fix kernel panic after setting hsuid 2024-05-17 11:50:51 +02:00
scsi scsi: s390: zfcp: Ensure synchronous unit_add 2025-06-27 11:05:34 +01:00
virtio virtio/s390: get rid of open-coded kvm hypercall 2021-06-28 11:18:28 +02:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00