diff options
Diffstat (limited to 'block/blk-barrier.c')
-rw-r--r-- | block/blk-barrier.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk-barrier.c b/block/blk-barrier.c index 557f69360b6a..d95a1440e29d 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) | |||
134 | } | 134 | } |
135 | 135 | ||
136 | blk_rq_init(q, rq); | 136 | blk_rq_init(q, rq); |
137 | rq->cmd_type = REQ_TYPE_FS; | ||
137 | rq->cmd_flags = REQ_HARDBARRIER | REQ_FLUSH; | 138 | rq->cmd_flags = REQ_HARDBARRIER | REQ_FLUSH; |
138 | rq->rq_disk = q->bar_rq.rq_disk; | 139 | rq->rq_disk = q->bar_rq.rq_disk; |
139 | rq->end_io = end_io; | 140 | rq->end_io = end_io; |