]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ocfs2: remove conversion of total_backoff in dlm_join_domain()
authorXue jiufei <xuejiufei@huawei.com>
Thu, 26 Jun 2014 00:42:22 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:22 +0000 (10:42 +1000)
The unit of total_backoff is msecs not jiffies, so no need to do the
conversion.  Otherwise, the join timeout is not 90 sec.

Signed-off-by: Yiwen Jiang <jiangyiwen@huawei.com>
Signed-off-by: joyce.xue <xuejiufei@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/dlm/dlmdomain.c

index 39efc5057a36d3106391012925e2a8a56758e24e..3fcf205ee900acb87eaa5f74f7c28949ee95bec4 100644 (file)
@@ -1923,12 +1923,11 @@ static int dlm_join_domain(struct dlm_ctxt *dlm)
                                goto bail;
                        }
 
-                       if (total_backoff >
-                           msecs_to_jiffies(DLM_JOIN_TIMEOUT_MSECS)) {
+                       if (total_backoff > DLM_JOIN_TIMEOUT_MSECS) {
                                status = -ERESTARTSYS;
                                mlog(ML_NOTICE, "Timed out joining dlm domain "
                                     "%s after %u msecs\n", dlm->name,
-                                    jiffies_to_msecs(total_backoff));
+                                    total_backoff);
                                goto bail;
                        }