]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libceph: delay debugfs initialization until we learn global_id
authorSage Weil <sage@inktank.com>
Sun, 19 Aug 2012 19:29:16 +0000 (12:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:43 +0000 (11:38 -0800)
commit523693067608f067bcbe94f23a4feb4dfcfa2db8
treec32daf4e0d6f08870763c8773d597e489985a76f
parentb8e03e320f9156e870f8cc66b0d9fca9f24d36c8
libceph: delay debugfs initialization until we learn global_id

(cherry picked from commit d1c338a509cea5378df59629ad47382810c38623)

The debugfs directory includes the cluster fsid and our unique global_id.
We need to delay the initialization of the debug entry until we have
learned both the fsid and our global_id from the monitor or else the
second client can't create its debugfs entry and will fail (and multiple
client instances aren't properly reflected in debugfs).

Reported by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/debugfs.c
net/ceph/ceph_common.c
net/ceph/debugfs.c
net/ceph/mon_client.c