diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2012-08-20 11:05:23 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-09 14:08:19 +0100 |
commit | 4eb9b3cba00471a01699cceb0f4b1f0cb8111ee2 (patch) | |
tree | 55ee26423ac7d71efc76d8436622563ea272a549 /drivers/block/cryptoloop.c | |
parent | 08332d73250eec349b055843a503d45a9b5c13b6 (diff) | |
download | blackbird-op-linux-4eb9b3cba00471a01699cceb0f4b1f0cb8111ee2.tar.gz blackbird-op-linux-4eb9b3cba00471a01699cceb0f4b1f0cb8111ee2.zip |
drbd: don't send out P_BARRIER with stale information
We must only send P_BARRIER for epochs we actually sent P_DATA in.
If we (re-)establish a connection, we reinitialized the
send.current_epoch_nr, but forgot to reset send.current_epoch_writes.
This could result in a spurious P_BARRIER with stale epoch information,
and a disconnect/reconnect cycle once the then "unexpected"
P_BARRIER_ACK is received:
BAD! BarrierAck #28823 received, expected #28829!
Introduce re_init_if_first_write() and maybe_send_barrier() helpers,
and call them appropriately for read/write/set-out-of-sync requests.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/cryptoloop.c')
0 files changed, 0 insertions, 0 deletions