]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: embed ceph connection structure in mon_client
authorAlex Elder <elder@inktank.com>
Sun, 27 May 2012 04:26:43 +0000 (23:26 -0500)
committerAlex Elder <elder@dreamhost.com>
Wed, 6 Jun 2012 14:23:54 +0000 (09:23 -0500)
commitcd2e669325f959f1253d92f6c4f762724ceddb1e
tree5b0f5eaa9d3fd24ba30368911c3a157acd2b9e33
parentae25fe4c855a238dea50467ac005200977c51508
libceph: embed ceph connection structure in mon_client

A monitor client has a pointer to a ceph connection structure in it.
This is the only one of the three ceph client types that do it this
way; the OSD and MDS clients embed the connection into their main
structures.  There is always exactly one ceph connection for a
monitor client, so there is no need to allocate it separate from the
monitor client structure.

So switch the ceph_mon_client structure to embed its
ceph_connection structure.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
include/linux/ceph/mon_client.h
net/ceph/mon_client.c