Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58539
b: refs/heads/master
c: 3168b07
h: refs/heads/master
i:
  58537: 7c09c5f
  58535: 6524938
v: v3
  • Loading branch information
Satyam Sharma authored and Steven Whitehouse committed Jul 9, 2007
1 parent 3f27e15 commit 41b6683
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b524fe646c9a226a847e30ca1221dc22e952f16b
refs/heads/master: 3168b0780d06ace875696f8a648d04d6089654e5
15 changes: 11 additions & 4 deletions trunk/fs/dlm/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,16 @@ static ssize_t node_weight_write(struct node *nd, const char *buf, size_t len)

static struct space *get_space(char *name)
{
struct config_item *i;

if (!space_list)
return NULL;
return to_space(config_group_find_obj(space_list, name));

down(&space_list->cg_subsys->su_sem);
i = config_group_find_obj(space_list, name);
up(&space_list->cg_subsys->su_sem);

return to_space(i);
}

static void put_space(struct space *sp)
Expand All @@ -776,20 +783,20 @@ static struct comm *get_comm(int nodeid, struct sockaddr_storage *addr)
if (cm->nodeid != nodeid)
continue;
found = 1;
config_item_get(i);
break;
} else {
if (!cm->addr_count ||
memcmp(cm->addr[0], addr, sizeof(*addr)))
continue;
found = 1;
config_item_get(i);
break;
}
}
up(&clusters_root.subsys.su_sem);

if (found)
config_item_get(i);
else
if (!found)
cm = NULL;
return cm;
}
Expand Down

0 comments on commit 41b6683

Please sign in to comment.