projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51aa322
)
dm snapshot: use barrier when writing exception store
author
Mikulas Patocka
<mpatocka@redhat.com>
Mon, 22 Jun 2009 09:12:26 +0000
(10:12 +0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Mon, 22 Jun 2009 09:12:26 +0000
(10:12 +0100)
Send barrier requests when updating the exception area.
Exception area updates need to be ordered w.r.t. data writes, so that
the writes are not reordered in hardware disk cache.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap-persistent.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-snap-persistent.c
b/drivers/md/dm-snap-persistent.c
index 2662a41337e7813b370df2d61dbfc70e964e066a..6e3fe4f14934811ddd0f9bba845ebdd4bb504036 100644
(file)
--- a/
drivers/md/dm-snap-persistent.c
+++ b/
drivers/md/dm-snap-persistent.c
@@
-636,7
+636,7
@@
static void persistent_commit_exception(struct dm_exception_store *store,
/*
* Commit exceptions to disk.
*/
- if (ps->valid && area_io(ps, WRITE))
+ if (ps->valid && area_io(ps, WRITE
_BARRIER
))
ps->valid = 0;
/*