s390/cio: unregister device when the only path is gone
authorVineeth Vijayan <vneethv@linux.ibm.com>
Thu, 4 May 2023 18:53:20 +0000 (20:53 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 22 May 2023 10:45:44 +0000 (12:45 +0200)
commit89c0c62e947a01e7a36b54582fd9c9e346170255
tree6486c2812e6323720a174660955ec37d7bb04f98
parent0f1cbf941d5949110adf70725a9614e622de8d99
s390/cio: unregister device when the only path is gone

Currently, if the device is offline and all the channel paths are
either configured or varied offline, the associated subchannel gets
unregistered. Don't unregister the subchannel, instead unregister
offline device.

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