aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2010-07-09 09:38:24 +0900
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 18:52:40 +0200
commit28e18d0188b9e3ab82ebd09d9b1d1c7f8d1822aa (patch)
treecad96b3566ee8da92003689cdba800f8a4f7ca04 /block
parent3b06c21e8462b77186613e70db286cfa8616088b (diff)
downloadkernel_samsung_crespo-28e18d0188b9e3ab82ebd09d9b1d1c7f8d1822aa.zip
kernel_samsung_crespo-28e18d0188b9e3ab82ebd09d9b1d1c7f8d1822aa.tar.gz
kernel_samsung_crespo-28e18d0188b9e3ab82ebd09d9b1d1c7f8d1822aa.tar.bz2
block: set REQ_TYPE_FS on flush requests
the block layer doesn't set rq->cmd_type on flush requests. By definition, it should be REQ_TYPE_FS (the lower layers build a command and interpret the result of it, that is, the block layer doesn't know the details). Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-barrier.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk-barrier.c b/block/blk-barrier.c
index 557f693..d95a144 100644
--- a/block/blk-barrier.c
+++ b/block/blk-barrier.c
@@ -134,6 +134,7 @@ static void queue_flush(struct request_queue *q, unsigned which)
}
blk_rq_init(q, rq);
+ rq->cmd_type = REQ_TYPE_FS;
rq->cmd_flags = REQ_HARDBARRIER | REQ_FLUSH;
rq->rq_disk = q->bar_rq.rq_disk;
rq->end_io = end_io;