Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286360
b: refs/heads/master
c: 466c08c
h: refs/heads/master
v: v3
  • Loading branch information
Shaohua Li authored and James Bottomley committed Jan 16, 2012
1 parent 022afbb commit 864e8f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 05b080fc933bb068b32fa119db00e8efcc10e3bd
refs/heads/master: 466c08c71a7dc19528e9b336c5bfa5ec41730c7c
7 changes: 1 addition & 6 deletions trunk/drivers/scsi/scsi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1316,15 +1316,10 @@ static inline int scsi_target_queue_ready(struct Scsi_Host *shost,
}

if (scsi_target_is_busy(starget)) {
if (list_empty(&sdev->starved_entry))
list_add_tail(&sdev->starved_entry,
&shost->starved_list);
list_move_tail(&sdev->starved_entry, &shost->starved_list);
return 0;
}

/* We're OK to process the command, so we can't be starved */
if (!list_empty(&sdev->starved_entry))
list_del_init(&sdev->starved_entry);
return 1;
}

Expand Down

0 comments on commit 864e8f5

Please sign in to comment.