Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2032
b: refs/heads/master
c: 283369c
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and James Bottomley committed May 20, 2005
1 parent 0ee3316 commit a02bd85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 867d1191fca388a79e4bb500dd85a9e871c96b99
refs/heads/master: 283369ccc26705bd9585a0e533c92bd7364c28d1
7 changes: 6 additions & 1 deletion trunk/drivers/scsi/scsi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,13 @@ static void scsi_run_queue(struct request_queue *q)
*/
static void scsi_requeue_command(struct request_queue *q, struct scsi_cmnd *cmd)
{
unsigned long flags;

cmd->request->flags &= ~REQ_DONTPREP;
blk_insert_request(q, cmd->request, 1, cmd, 1);

spin_lock_irqsave(q->queue_lock, flags);
blk_requeue_request(q, cmd->request);
spin_unlock_irqrestore(q->queue_lock, flags);

scsi_run_queue(q);
}
Expand Down

0 comments on commit a02bd85

Please sign in to comment.