Lines Matching refs:shost
130 2. Links scmd->eh_entry to shost->eh_cmd_q
132 3. Sets SHOST_RECOVERY bit in shost->shost_state
134 4. Increments shost->host_failed
136 5. Wakes up SCSI EH thread if shost->host_busy == shost->host_failed
138 As can be seen above, once any scmd is added to shost->eh_cmd_q,
142 time out and get added to shost->eh_cmd_q.
145 becomes equal to the number of failed scmds - i.e. shost->host_busy ==
146 shost->host_failed. This wakes up SCSI EH thread. So, once woken up,
148 are linked on shost->eh_cmd_q.
185 3. Wakes up waiters on shost->host_wait. This occurs if someone
253 - add scmd to shost->eh_cmd_q
255 - shost->host_failed++
256 LOCKING: shost->host_lock
259 ACTION: move all scmds to EH's local eh_work_q. shost->eh_cmd_q
261 LOCKING: shost->host_lock (not strictly necessary, just for
266 - shost->host_failed--
288 1. Lock shost->host_lock, splice_init shost->eh_cmd_q into local
289 eh_work_q and unlock host_lock. Note that shost->eh_cmd_q is
446 - shost->host_failed == shost->host_busy
453 - shost->host_failed is zero.
460 - shost->eh_cmd_q is cleared.
475 - For consistency, when accessing/modifying shost data structure,
476 grab shost->host_lock.