aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2011-10-24 10:24:38 -0400
committerJens Axboe <axboe@kernel.dk>2011-10-24 10:24:38 -0400
commit83157223defe3be490cfea048e83451b6f254216 (patch)
treefa484185d27765a13036bb43ae68d8cdb63f585b /block
parent9562ad9ab36df7ccef920d119f3b5100025db95f (diff)
parentf992ae801a7dec34a4ed99a6598bbbbfb82af4fb (diff)
Merge branch 'for-linus' into for-3.2/core
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c2
-rw-r--r--block/blk-flush.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index da697936d220..f65871116404 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1769,6 +1769,8 @@ int blk_insert_cloned_request(struct request_queue *q, struct request *rq)
1769 where = ELEVATOR_INSERT_FLUSH; 1769 where = ELEVATOR_INSERT_FLUSH;
1770 1770
1771 add_acct_request(q, rq, where); 1771 add_acct_request(q, rq, where);
1772 if (where == ELEVATOR_INSERT_FLUSH)
1773 __blk_run_queue(q);
1772 spin_unlock_irqrestore(q->queue_lock, flags); 1774 spin_unlock_irqrestore(q->queue_lock, flags);
1773 1775
1774 return 0; 1776 return 0;
diff --git a/block/blk-flush.c b/block/blk-flush.c
index 491eb30a242d..720ad607ff91 100644
--- a/block/blk-flush.c
+++ b/block/blk-flush.c
@@ -320,7 +320,7 @@ void blk_insert_flush(struct request *rq)
320 return; 320 return;
321 } 321 }
322 322
323 BUG_ON(!rq->bio || rq->bio != rq->biotail); 323 BUG_ON(rq->bio != rq->biotail); /*assumes zero or single bio rq */
324 324
325 /* 325 /*
326 * If there's data but flush is not necessary, the request can be 326 * If there's data but flush is not necessary, the request can be
@@ -330,7 +330,6 @@ void blk_insert_flush(struct request *rq)
330 if ((policy & REQ_FSEQ_DATA) && 330 if ((policy & REQ_FSEQ_DATA) &&
331 !(policy & (REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH))) { 331 !(policy & (REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH))) {
332 list_add_tail(&rq->queuelist, &q->queue_head); 332 list_add_tail(&rq->queuelist, &q->queue_head);
333 blk_run_queue_async(q);
334 return; 333 return;
335 } 334 }
336 335