diff options
Diffstat (limited to 'block/ll_rw_blk.c')
-rw-r--r-- | block/ll_rw_blk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index 17c42ddd31db..2270bb451385 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -2827,6 +2827,9 @@ static void init_request_from_bio(struct request *req, struct bio *bio) | |||
2827 | if (unlikely(bio_barrier(bio))) | 2827 | if (unlikely(bio_barrier(bio))) |
2828 | req->flags |= (REQ_HARDBARRIER | REQ_NOMERGE); | 2828 | req->flags |= (REQ_HARDBARRIER | REQ_NOMERGE); |
2829 | 2829 | ||
2830 | if (bio_sync(bio)) | ||
2831 | req->flags |= REQ_RW_SYNC; | ||
2832 | |||
2830 | req->errors = 0; | 2833 | req->errors = 0; |
2831 | req->hard_sector = req->sector = bio->bi_sector; | 2834 | req->hard_sector = req->sector = bio->bi_sector; |
2832 | req->hard_nr_sectors = req->nr_sectors = bio_sectors(bio); | 2835 | req->hard_nr_sectors = req->nr_sectors = bio_sectors(bio); |