When doing a lot of testing with joining lockspace and leaving a lockspace again. I realized the sequence number which is put into some dlm message starts with zero when just a lockspace created. This sequence number will be checked for matching message replies, to avoid issues and easily see sequence mismatches for different lockspace creations we change to start the sequence number randomly.
Signed-off-by: Alexander Aring <aahri...@redhat.com> --- fs/dlm/lockspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index d9dc0b734002..9f344d76afa3 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -572,7 +572,7 @@ static int new_lockspace(const char *name, const char *cluster, spin_lock_init(&ls->ls_rcom_spin); get_random_bytes(&ls->ls_rcom_seq, sizeof(uint64_t)); ls->ls_recover_status = 0; - ls->ls_recover_seq = 0; + ls->ls_recover_seq = get_random_u64(); ls->ls_recover_args = NULL; init_rwsem(&ls->ls_in_recovery); init_rwsem(&ls->ls_recv_active); -- 2.31.1