On 23.04.2021 12:08, Vineeth Vijayan wrote: > The condition to check the cdev pointer validity on > css_sch_device_unregister() is a leftover from the 'commit c97cd8c81d4a > ("s390/cio: Remove pm support from ccw bus driver")'. This could lead to a > situation, where detaching the disk is not happening completely. Remove This applies to all devices types, not just disks. So replace "disk" with either "device" or "subchannel". > this invalid condition in the IO_SCH_UNREG case. > > Fixes: 8cc0dcfdc1c0 ("s390/cio: remove pm support from ccw bus driver") > Reported-by: Christian Ehrhardt <christian.ehrhardt@xxxxxxxxxxxxx> > Suggested-by: Christian Ehrhardt <christian.ehrhardt@xxxxxxxxxxxxx> > Cc: <stable@xxxxxxxxxxxxxxx> > Signed-off-by: Vineeth Vijayan <vneethv@xxxxxxxxxxxxx> Reviewed-by: Peter Oberparleiter <oberpar@xxxxxxxxxxxxx> -- Peter Oberparleiter Linux on Z Development - IBM Germany