You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
drbd: Delay/reject other state changes while establishing a connection
Changes to the role and disk state should be delayed or rejected while we establish a connection. This is necessary, since the peer will base its resync decision on the UUIDs and the state we sent in the drbd_connect() function. The most prominent example for this race is becoming primary after sending state and UUIDs and before the state changes to C_WF_CONNECTION. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
@@ -808,6 +808,7 @@ enum {
|
||||
CONN_WD_ST_CHG_FAIL,
|
||||
CONN_DRY_RUN, /* Expect disconnect after resync handshake. */
|
||||
CREATE_BARRIER, /* next P_DATA is preceded by a P_BARRIER */
|
||||
STATE_SENT, /* Do not change state/UUIDs while this is set */
|
||||
};
|
||||
|
||||
struct drbd_tconn { /* is a resource from the config file */
|
||||
|
||||
Reference in New Issue
Block a user