s390/cio: unregister the subchannel while purging
authorVineeth Vijayan <vneethv@linux.ibm.com>
Wed, 15 Sep 2021 11:39:16 +0000 (13:39 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 4 Oct 2021 07:49:36 +0000 (09:49 +0200)
commitfa172f043f5bc21c357c54a6ca2e9c8acd18c3db
tree7d22d14cfb8801672ae1fd3d36e15358677a0beb
parent1c8174fdc798489159a79466fca782daa231219a
s390/cio: unregister the subchannel while purging

The cio_ignore list is used to create and maintain the list of devices
which is to be ignored by Linux. During boot-time, this list is adjusted
and accommodate all the devices which are configured on the HMC
interface. Once these devices are accessible, they are then available to
Linux and set online.

cio_ignore purge function should align with this functionality. But
currently, the subchannel associated with the offline-devices are not
unregistered during purge. Add an explicit subchannel-unregister function
in the purge_fn callback.

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/device.c