From: Ilya Dryomov Date: Tue, 13 May 2014 07:19:26 +0000 (+0400) Subject: libceph: mon_get_version request infrastructure X-Git-Tag: omap-for-v3.16/fixes-against-rc1~24^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=513a8243d67f8e8d27f2883bd2f18bc87c7ca376;p=pandora-kernel.git libceph: mon_get_version request infrastructure Add support for mon_get_version requests to libceph. This reuses much of the ceph_mon_generic_request infrastructure, with one exception. Older OSDs don't set mon_get_version reply hdr->tid even if the original request had a non-zero tid, which makes it impossible to lookup ceph_mon_generic_request contexts by tid in get_generic_reply() for such replies. As a workaround, we allocate a reply message on the reply path. This can probably interfere with revoke, but I don't see a better way. Signed-off-by: Ilya Dryomov Reviewed-by: Sage Weil --- Reading git-diff-tree failed