diff options
author | Sage Weil <sage@newdream.net> | 2012-01-14 07:22:03 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2012-02-02 21:49:01 +0100 |
commit | ab434b60ab07f8c44246b6fb0cddee436687a09a (patch) | |
tree | 2a680aca91c4906f28cda57093ac76b1e588de5d /net/ceph/ceph_common.c | |
parent | ceph: change "ceph.layout" xattr to be "ceph.file.layout" (diff) | |
download | linux-ab434b60ab07f8c44246b6fb0cddee436687a09a.tar.xz linux-ab434b60ab07f8c44246b6fb0cddee436687a09a.zip |
ceph: initialize client debugfs outside of monc->mutex
Initializing debufs under monc->mutex introduces a lock dependency for
sb->s_type->i_mutex_key, which (combined with several other dependencies)
leads to an annoying lockdep warning. There's no particular reason to do
the debugfs setup under this lock, so move it out.
It used to be the case that our first monmap could come from the OSD; that
is no longer the case with recent servers, so we will reliably set up the
client entry during the initial authentication.
We don't have to worry about racing with debugfs teardown by
ceph_debugfs_client_cleanup() because ceph_destroy_client() calls
ceph_msgr_flush() first, which will wait for the message dispatch work
to complete (and the debugfs init to complete).
Fixes: #1940
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'net/ceph/ceph_common.c')
-rw-r--r-- | net/ceph/ceph_common.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c index 97f70e50ad3b..761ad9d6cc3b 100644 --- a/net/ceph/ceph_common.c +++ b/net/ceph/ceph_common.c @@ -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; } |