Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282109
b: refs/heads/master
c: ae0751f
h: refs/heads/master
i:
  282107: 8b00db5
v: v3
  • Loading branch information
Lin Ming authored and Jeff Garzik committed Jan 9, 2012
1 parent 444f1f0 commit c9b5e36
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a6d6a2ddabbd32c07f6a38b659e5f3db319fa5a
refs/heads/master: ae0751ffc77e7f21629970fdab5528c573e637f8
5 changes: 3 additions & 2 deletions trunk/drivers/scsi/scsi_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,7 @@ int scsi_error_handler(void *data)
* what we need to do to get it up and online again (if we can).
* If we fail, we end up taking the thing offline.
*/
if (scsi_autopm_get_host(shost) != 0) {
if (!shost->eh_noresume && scsi_autopm_get_host(shost) != 0) {
SCSI_LOG_ERROR_RECOVERY(1,
printk(KERN_ERR "Error handler scsi_eh_%d "
"unable to autoresume\n",
Expand All @@ -1833,7 +1833,8 @@ int scsi_error_handler(void *data)
* which are still online.
*/
scsi_restart_operations(shost);
scsi_autopm_put_host(shost);
if (!shost->eh_noresume)
scsi_autopm_put_host(shost);
set_current_state(TASK_INTERRUPTIBLE);
}
__set_current_state(TASK_RUNNING);
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/scsi/scsi_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,9 @@ struct Scsi_Host {
/* Asynchronous scan in progress */
unsigned async_scan:1;

/* Don't resume host in EH */
unsigned eh_noresume:1;

/*
* Optional work queue to be utilized by the transport
*/
Expand Down

0 comments on commit c9b5e36

Please sign in to comment.