• Dan Williams's avatar
    isci: kill isci_remote_device_change_state() · f2088267
    Dan Williams authored
    Now that "stopping/stopped" are one in the same and signalled by a NULL device
    pointer the rest of the device status infrastructure can be removed (->status
    and ->state_lock).  The "not ready for i/o state" is replaced with a state
    flag, and is evaluated under scic_lock so that we don't see transients from
    taking the device reference to submitting the i/o.
    
    This also fixes a potential leakage of can_queue slots in the rare case that
    SAS_TASK_ABORTED is set at submission.
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    f2088267
host.c 96.5 KB