diff options
author | 2012-01-16 12:14:01 +0100 | |
---|---|---|
committer | 2012-05-09 15:16:34 +0200 | |
commit | fc28845bc005995b41ae8c83c7922d088f0ad228 (patch) | |
tree | cb5f28c4c0cfb06f46b9e1b0d7e7efcdfc132f90 /drivers/net/xen-netfront.c | |
parent | drbd: add missing part_round_stats to _drbd_start_io_acct (diff) | |
download | linux-dev-fc28845bc005995b41ae8c83c7922d088f0ad228.tar.xz linux-dev-fc28845bc005995b41ae8c83c7922d088f0ad228.zip |
drbd: Fix a potential race that could case data inconsistency
When we have a write request and a state change C_WF_BITMAP_S -> C_SYNC_SOURCE
at the same time, and it happens that the line
remote = remote && drbd_should_do_remote(s);
stills sees C_WF_BITMAP_S, and
send_oos = rw == WRITE && drbd_should_send_oos(s);
already sees C_SYNC_SOURCE both are 0.
This causes the write to not be mirrored, but marked as out-of-sync on the
Sync_Source node.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions