]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/cio: Purge based on the cdev's online status
authorVineeth Vijayan <vneethv@linux.ibm.com>
Tue, 28 Apr 2026 08:43:41 +0000 (10:43 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 5 May 2026 08:12:47 +0000 (10:12 +0200)
commit58d50cad63e85daae032924ecc3d457fb1ec02fb
tree95f6b872e36f939c2f9a1d8f8a4e26883cb49255
parenta59b9cb8596ce82a5a8d4dda417e1a721158ed53
s390/cio: Purge based on the cdev's online status

Ensure that all devices currently offline are purged correctly.

Previously, purging logic relied on the internal FSM state to
determine whether a device was offline. However, devices with a
target state of offline could be skipped if CIO internal
processing was still ongoing during the purge operation.

Update the purge decision logic to rely on the online variable
in the cdev structure instead of the internal FSM state,
providing a more reliable indication of actual device
availability.

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