diff options
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index f85cfa6c47b5..b2c95dbe9d65 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -1316,15 +1316,10 @@ static inline int scsi_target_queue_ready(struct Scsi_Host *shost, | |||
1316 | } | 1316 | } |
1317 | 1317 | ||
1318 | if (scsi_target_is_busy(starget)) { | 1318 | if (scsi_target_is_busy(starget)) { |
1319 | if (list_empty(&sdev->starved_entry)) | 1319 | list_move_tail(&sdev->starved_entry, &shost->starved_list); |
1320 | list_add_tail(&sdev->starved_entry, | ||
1321 | &shost->starved_list); | ||
1322 | return 0; | 1320 | return 0; |
1323 | } | 1321 | } |
1324 | 1322 | ||
1325 | /* We're OK to process the command, so we can't be starved */ | ||
1326 | if (!list_empty(&sdev->starved_entry)) | ||
1327 | list_del_init(&sdev->starved_entry); | ||
1328 | return 1; | 1323 | return 1; |
1329 | } | 1324 | } |
1330 | 1325 | ||