s390/cio: derive cdev information only for IO-subchannels
authorVineeth Vijayan <vneethv@linux.ibm.com>
Fri, 17 Sep 2021 13:04:01 +0000 (15:04 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 4 Oct 2021 07:49:36 +0000 (09:49 +0200)
commit0c3812c347bfb0dc213556a195e79850c55702f5
tree0589f1f22334f731f866c9996e6c05567631bce7
parent6526a597a2e856df9ae94512f9903caccd5196d6
s390/cio: derive cdev information only for IO-subchannels

cdev->online for the purge function must not be checked for the
non-IO subchannel type. Make sure that we are deriving the cdev only
from sch-type SUBCHANNEL_TYPE_IO.

Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/cio/css.c