git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c518d04
)
drbd: fix race on meta-data update
author
Lars Ellenberg
<lars.ellenberg@linbit.com>
Wed, 1 Sep 2010 13:12:12 +0000
(15:12 +0200)
committer
Philipp Reisner
<philipp.reisner@linbit.com>
Thu, 14 Oct 2010 16:38:28 +0000
(18:38 +0200)
The race:
drbd_md_mark_dirty()
drbd_md_sync()
if (!test_and_clear_bit(MD_DIRTY, &mdev->flags))
return;
drbd_md_sync_page_io(mdev, mdev->ldev, sector, WRITE)
==> RACE
clear_bit(MD_DIRTY, &mdev->flags); <== spurious
Fixed by removing the spurious clear_bit.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
No differences found