block: set REQ_TYPE_FS on flush requests
[linux-2.6.git] / block / blk-barrier.c
index 557f693..d95a144 100644 (file)
@@ -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;