• James Bottomley's avatar
    [PATCH] sd_shutdown cannot be called when in state SDEV_DEL · 7d613cda
    James Bottomley authored
    sd_remove calls sd_shutdown to finish I/O to the disc.  However, the
    state model puts the device in SDEV_DEL before triggering the
    sd_remove (which won't allow any further I/O at all).
    
    Fix by making SDEV_CANCEL the intermediate state and only transitioning to 
    SDEV_DEL after calling device_del().
    7d613cda
scsi_sysfs.c 14.1 KB