]> git.dujemihanovic.xyz Git - linux.git/commit
s390/cio: add rescan functionality on channel subsystem
authorVineeth Vijayan <vneethv@linux.ibm.com>
Sun, 25 Apr 2021 09:27:59 +0000 (11:27 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 18 Aug 2021 08:01:27 +0000 (10:01 +0200)
commitcec0c58d34f26a8ed7bf7ca8726608edbac7e958
treef41cd28ffc9fd2428b3c52e2f5d11f3b5a5ebcc1
parentc78d0c7484f0a8fc4da0047b81900d00cd26488b
s390/cio: add rescan functionality on channel subsystem

This patch introduces a new rescan sys-interface for channel-subsystem.
The rescan interface allows the user to invoke an evaluation of all
subchannels defined in the I/O configuration.

The new rescan interface can be found at /sys/devices/css0/rescan
and can be triggered by,

echo > /sys/devices/css0/rescan

Writing to this interface triggers subchannel evaluation. The write
request completes only after scan-related work has completed

This user-invoked subchannel evaluation allows manual recovery in error
situations such as:
 - restart of device discovery after resolution of temporary device
   error
 - inconsistent OS view of subchannel state due to missing state-change
   interrupts (CRWs)

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