Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57775
b: refs/heads/master
c: bc90ba0
h: refs/heads/master
i:
  57773: 1f09a41
  57771: ff0ae66
  57767: cb4d3b0
  57759: 327de45
v: v3
  • Loading branch information
Tejun Heo authored and Linus Torvalds committed Jun 15, 2007
1 parent 0f7a526 commit cc763bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e126c7b6bbb0c5b5fc3ecf2fd1ae67c803b747cc
refs/heads/master: bc90ba093af2e5022b9d055a2148b54a6aa35bc9
9 changes: 9 additions & 0 deletions trunk/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,15 @@ unsigned blk_ordered_req_seq(struct request *rq)
if (rq == &q->post_flush_rq)
return QUEUE_ORDSEQ_POSTFLUSH;

/*
* !fs requests don't need to follow barrier ordering. Always
* put them at the front. This fixes the following deadlock.
*
* http://thread.gmane.org/gmane.linux.kernel/537473
*/
if (!blk_fs_request(rq))
return QUEUE_ORDSEQ_DRAIN;

if ((rq->cmd_flags & REQ_ORDERED_COLOR) ==
(q->orig_bar_rq->cmd_flags & REQ_ORDERED_COLOR))
return QUEUE_ORDSEQ_DRAIN;
Expand Down

0 comments on commit cc763bc

Please sign in to comment.