summaryrefslogtreecommitdiffstats
path: root/block/blk-barrier.c
diff options
context:
space:
mode:
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2008-08-11 18:07:08 +0200
committerJens Axboe <jens.axboe@oracle.com>2008-10-09 08:56:02 +0200
commit2ebca85abcfcbaaf1c0b242e39fc88ad3da90090 (patch)
treea8fc6fbc0ba4a258b8252625158e1e30dd255fd5 /block/blk-barrier.c
parentblktrace: simplify flags handling in __blk_add_trace (diff)
downloadlinux-2ebca85abcfcbaaf1c0b242e39fc88ad3da90090.tar.xz
linux-2ebca85abcfcbaaf1c0b242e39fc88ad3da90090.zip
Use WRITE_BARRIER in blkdev_issue_flush(), not (1<<BIO_RW_BARRIER)
Barriers should be submitted with the WRITE flag set. Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to '')
-rw-r--r--block/blk-barrier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-barrier.c b/block/blk-barrier.c
index 273121c0eb80..e5448131d4f1 100644
--- a/block/blk-barrier.c
+++ b/block/blk-barrier.c
@@ -293,7 +293,7 @@ int blkdev_issue_flush(struct block_device *bdev, sector_t *error_sector)
bio->bi_end_io = bio_end_empty_barrier;
bio->bi_private = &wait;
bio->bi_bdev = bdev;
- submit_bio(1 << BIO_RW_BARRIER, bio);
+ submit_bio(WRITE_BARRIER, bio);
wait_for_completion(&wait);