Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233822
b: refs/heads/master
c: 255bb49
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jens Axboe committed Mar 2, 2011
1 parent 6c2ddf0 commit 4c0c017
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 1654e7411a1ad4999fe7890ef51d2a2bbb1fcf76
refs/heads/master: 255bb490c8c27eed484d538efe6ef6a7473bd3f6
8 changes: 5 additions & 3 deletions trunk/block/blk-flush.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ static void blk_flush_complete_seq_end_io(struct request_queue *q,

/*
* Moving a request silently to empty queue_head may stall the
* queue. Kick the queue in those cases.
* queue. Kick the queue in those cases. This function is called
* from request completion path and calling directly into
* request_fn may confuse the driver. Always use kblockd.
*/
if (was_empty && next_rq)
__blk_run_queue(q, false);
__blk_run_queue(q, true);
}

static void pre_flush_end_io(struct request *rq, int error)
Expand Down Expand Up @@ -130,7 +132,7 @@ static struct request *queue_next_fseq(struct request_queue *q)
BUG();
}

elv_insert(q, rq, ELEVATOR_INSERT_FRONT);
elv_insert(q, rq, ELEVATOR_INSERT_REQUEUE);
return rq;
}

Expand Down

0 comments on commit 4c0c017

Please sign in to comment.