[email protected], device starved forever
PATCH 1/1 [email protected], device starved forever
Hi,
When the error handler finish and call scsi_restart_operations, may forget to mark some devices starved. Patch atached.
Thanks,
Peter Yao
home/peter/scsi_error.c renamed from drivers/scsi/scsi_error.c +6 -1
@@ -1262,7 +1262,12 @@ || (host->host_blocked) || (host->host_self_blocked) || (SDpnt->device_blocked)) { -break ; +if (atomic_read (&SDpnt->device_busy) ==0 ) { + SDpnt->starved =1 ; + host->some_device_starved =1 ; + + } +continue ; } q = &SDpnt->request_queue; q->request_fn (q);