Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131525
b: refs/heads/master
c: be987fd
h: refs/heads/master
i:
  131523: b1bc0a6
v: v3
  • Loading branch information
Hannes Reinecke authored and Jens Axboe committed Feb 18, 2009
1 parent 2c28734 commit 6fca28e
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 41b8c853a495438208faa5be03bbb0050859163b
refs/heads/master: be987fdb55a4726e2fcbab7501f89276bdb57288
9 changes: 8 additions & 1 deletion trunk/block/blk-timeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,19 @@ void blk_abort_queue(struct request_queue *q)
{
unsigned long flags;
struct request *rq, *tmp;
LIST_HEAD(list);

spin_lock_irqsave(q->queue_lock, flags);

elv_abort_queue(q);

list_for_each_entry_safe(rq, tmp, &q->timeout_list, timeout_list)
/*
* Splice entries to local list, to avoid deadlocking if entries
* get readded to the timeout list by error handling
*/
list_splice_init(&q->timeout_list, &list);

list_for_each_entry_safe(rq, tmp, &list, timeout_list)
blk_abort_request(rq);

spin_unlock_irqrestore(q->queue_lock, flags);
Expand Down

0 comments on commit 6fca28e

Please sign in to comment.