提交 2bd02345 编写于 作者: M Mikulas Patocka 提交者: Alasdair G Kergon

dm snapshot: use barrier when writing exception store

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: NMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
上级 51aa3228
...@@ -636,7 +636,7 @@ static void persistent_commit_exception(struct dm_exception_store *store, ...@@ -636,7 +636,7 @@ static void persistent_commit_exception(struct dm_exception_store *store,
/* /*
* Commit exceptions to disk. * Commit exceptions to disk.
*/ */
if (ps->valid && area_io(ps, WRITE)) if (ps->valid && area_io(ps, WRITE_BARRIER))
ps->valid = 0; ps->valid = 0;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册