diff --git a/fs/dlm/ast.c b/fs/dlm/ast.c index 07fed838d8fdd4225a6877c05863fd3509ea4852..562fa8c3edff3e74d56dc1beaf96e7408c4421aa 100644 --- a/fs/dlm/ast.c +++ b/fs/dlm/ast.c @@ -181,6 +181,8 @@ void dlm_add_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, int status, spin_lock(&dlm_cb_seq_spin); new_seq = ++dlm_cb_seq; + if (!dlm_cb_seq) + new_seq = ++dlm_cb_seq; spin_unlock(&dlm_cb_seq_spin); if (lkb->lkb_flags & DLM_IFL_USER) {