]> git.itanic.dy.fi Git - linux-stable/commit
s390/cio: include subchannels without devices also for evaluation
authorVineeth Vijayan <vneethv@linux.ibm.com>
Tue, 2 May 2023 09:12:42 +0000 (11:12 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 15 May 2023 12:20:14 +0000 (14:20 +0200)
commitb1b0d5aec1cf9f9a900a14964f869c68688d923e
tree6ec19fea66d2584281ba5c230c254bcf6eddb5a7
parent124acbe275040809abfa5fbe6e25790a53d5a161
s390/cio: include subchannels without devices also for evaluation

Currently when the new channel-path is enabled, we do evaluation only
on the subchannels with a device connected on it. This is because,
in the past, if the device in the subchannel is not working or not
available, we used to unregister the subchannels. But, from the 'commit
2297791c92d0 ("s390/cio: dont unregister subchannel from child-drivers")'
we allow subchannels with or without an active device connected
on it. So, when we do the io_subchannel_verify, make sure that,
we are evaluating the subchannels without any device too.

Fixes: 2297791c92d0 ("s390/cio: dont unregister subchannel from child-drivers")
Reported-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/cio/device.c