projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35ba8f7
)
Use WRITE_BARRIER in blkdev_issue_flush(), not (1<<BIO_RW_BARRIER)
author
OGAWA Hirofumi
<hirofumi@mail.parknet.co.jp>
Mon, 11 Aug 2008 16:07:08 +0000
(17:07 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:02 +0000
(08:56 +0200)
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>
block/blk-barrier.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-barrier.c
b/block/blk-barrier.c
index 273121c0eb805c57ce0138ffc2dfec0b2dc67a28..e5448131d4f1f90c8bec86db97096d99466408de 100644
(file)
--- 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);