diff options
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 59bfcdd535e..4863733f84c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -9549,11 +9549,11 @@ glusterd_list_add_order (struct cds_list_head *new, struct cds_list_head *head,          struct cds_list_head *pos = NULL;          cds_list_for_each_rcu (pos, head) { -                if (compare (new, pos) >= 0) +                if (compare (new, pos) <= 0)                          break;          } -        cds_list_add_rcu (new, pos); +        cds_list_add_rcu (new, rcu_dereference (pos->prev));  }  void  | 
