]> git.karo-electronics.de Git - karo-tx-linux.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)
commit67130934fb579fdf0f2f6d745960264378b57dc8
tree5b0f5eaa9d3fd24ba30368911c3a157acd2b9e33
parent0d47766f14211a73eaf54cab234db134ece79f49
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