]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jun 2023 08:14:21 +0000 (10:14 +0200)
commit16091aa1d5f16acfe98c8fb05203710c17df8646
tree2f634619d7d4f876c982db1ba6687d79e50d1fc2
parentc6620d55da271b9496a9a48e10b6a096be1a9a3f
s390/cio: unregister device when the only path is gone

[ Upstream commit 89c0c62e947a01e7a36b54582fd9c9e346170255 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/cio/device.c