Star64_linux/include/linux/ceph
Alex Elder 8921d114f5 libceph: make ceph_con_revoke_message() a msg op
ceph_con_revoke_message() is passed both a message and a ceph
connection.  A ceph_msg allocated for incoming messages on a
connection always has a pointer to that connection, so there's no
need to provide the connection when revoking such a message.

Note that the existing logic does not preclude the message supplied
being a null/bogus message pointer.  The only user of this interface
is the OSD client, and the only value an osd client passes is a
request's r_reply field.  That is always non-null (except briefly in
an error path in ceph_osdc_alloc_request(), and that drops the
only reference so the request won't ever have a reply to revoke).
So we can safely assume the passed-in message is non-null, but add a
BUG_ON() to make it very obvious we are imposing this restriction.

Rename the function ceph_msg_revoke_incoming() to reflect that it is
really an operation on an incoming message.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2012-06-06 09:23:55 -05:00
..
auth.h ceph: messenger: reduce args to create_authorizer 2012-05-17 08:18:12 -05:00
buffer.h
ceph_debug.h
ceph_frag.h
ceph_fs.h ceph: drop support for preferred_osd pgs 2012-05-07 15:33:36 -07:00
ceph_hash.h
debugfs.h
decode.h ceph: fix bounds check in ceph_decode_need and ceph_encode_need 2012-05-14 12:12:27 -05:00
libceph.h libceph: embed ceph messenger structure in ceph_client 2012-06-01 08:37:56 -05:00
mdsmap.h
messenger.h libceph: make ceph_con_revoke_message() a msg op 2012-06-06 09:23:55 -05:00
mon_client.h libceph: embed ceph connection structure in mon_client 2012-06-06 09:23:54 -05:00
msgpool.h
msgr.h
osd_client.h ceph: define ceph_auth_handshake type 2012-05-17 08:18:12 -05:00
osdmap.h ceph: drop support for preferred_osd pgs 2012-05-07 15:33:36 -07:00
pagelist.h
rados.h ceph: update common header files 2011-03-21 12:24:21 -07:00
types.h