]> git.baikalelectronics.ru Git - kernel.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)
committerSage Weil <sage@inktank.com>
Mon, 20 Aug 2012 17:03:15 +0000 (10:03 -0700)
commit1fd8aac403f84bf1887f0c27c07dbc7d287a6d78
treeda12e11b8ae0df8ae424d1cef0d98eac095e2268
parent3c614a6242abc5ceb7d1ee61431075ade476808f
libceph: delay debugfs initialization until we learn global_id

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>
fs/ceph/debugfs.c
net/ceph/ceph_common.c
net/ceph/debugfs.c
net/ceph/mon_client.c