summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2011-10-24 16:24:38 +0200
committerJens Axboe <axboe@kernel.dk>2011-10-24 16:24:38 +0200
commit83157223defe3be490cfea048e83451b6f254216 (patch)
treefa484185d27765a13036bb43ae68d8cdb63f585b /block
parent9562ad9ab36df7ccef920d119f3b5100025db95f (diff)
parentf992ae801a7dec34a4ed99a6598bbbbfb82af4fb (diff)
downloadop-kernel-dev-83157223defe3be490cfea048e83451b6f254216.zip
op-kernel-dev-83157223defe3be490cfea048e83451b6f254216.tar.gz
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 da69793..f658711 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)
where = ELEVATOR_INSERT_FLUSH;
add_acct_request(q, rq, where);
+ if (where == ELEVATOR_INSERT_FLUSH)
+ __blk_run_queue(q);
spin_unlock_irqrestore(q->queue_lock, flags);
return 0;
diff --git a/block/blk-flush.c b/block/blk-flush.c
index 491eb30..720ad60 100644
--- a/block/blk-flush.c
+++ b/block/blk-flush.c
@@ -320,7 +320,7 @@ void blk_insert_flush(struct request *rq)
return;
}
- BUG_ON(!rq->bio || rq->bio != rq->biotail);
+ BUG_ON(rq->bio != rq->biotail); /*assumes zero or single bio rq */
/*
* If there's data but flush is not necessary, the request can be
@@ -330,7 +330,6 @@ void blk_insert_flush(struct request *rq)
if ((policy & REQ_FSEQ_DATA) &&
!(policy & (REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH))) {
list_add_tail(&rq->queuelist, &q->queue_head);
- blk_run_queue_async(q);
return;
}
OpenPOWER on IntegriCloud