Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287161
b: refs/heads/master
c: ab434b6
h: refs/heads/master
i:
  287159: 23a2448
v: v3
  • Loading branch information
Sage Weil committed Feb 2, 2012
1 parent 59edb7f commit f2025d8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 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: 114fc47492e23d93653e4a16664833e98d62a563
refs/heads/master: ab434b60ab07f8c44246b6fb0cddee436687a09a
2 changes: 0 additions & 2 deletions trunk/net/ceph/ceph_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ int ceph_check_fsid(struct ceph_client *client, struct ceph_fsid *fsid)
} else {
pr_info("client%lld fsid %pU\n", ceph_client_id(client), fsid);
memcpy(&client->fsid, fsid, sizeof(*fsid));
ceph_debugfs_client_init(client);
client->have_fsid = true;
}
return 0;
}
Expand Down
13 changes: 12 additions & 1 deletion trunk/net/ceph/mon_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#include <linux/ceph/mon_client.h>
#include <linux/ceph/libceph.h>
#include <linux/ceph/debugfs.h>
#include <linux/ceph/decode.h>

#include <linux/ceph/auth.h>

/*
Expand Down Expand Up @@ -340,8 +340,19 @@ static void ceph_monc_handle_map(struct ceph_mon_client *monc,
client->monc.monmap = monmap;
kfree(old);

if (!client->have_fsid) {
client->have_fsid = true;
mutex_unlock(&monc->mutex);
/*
* do debugfs initialization without mutex to avoid
* creating a locking dependency
*/
ceph_debugfs_client_init(client);
goto out_unlocked;
}
out:
mutex_unlock(&monc->mutex);
out_unlocked:
wake_up_all(&client->auth_wq);
}

Expand Down

0 comments on commit f2025d8

Please sign in to comment.