android_kernel_google_msm/net/ceph
Alex Elder ce4516fbb4 libceph: make ceph_con_revoke_message() a msg op
(cherry picked from commit 8921d114f5)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-26 11:38:24 -08:00
..
crush crush: fix memory leak when destroying tree buckets 2012-11-26 11:38:03 -08:00
armor.c
auth.c
auth_none.c ceph: messenger: reduce args to create_authorizer 2012-11-26 11:38:07 -08:00
auth_none.h
auth_x.c ceph: messenger: reduce args to create_authorizer 2012-11-26 11:38:07 -08:00
auth_x.h
auth_x_protocol.h
buffer.c
ceph_common.c libceph: embed ceph messenger structure in ceph_client 2012-11-26 11:38:21 -08:00
ceph_fs.c ceph: fix file mode calculation 2011-07-19 11:25:04 -07:00
ceph_hash.c
ceph_strings.c
crypto.c ceph: Use kmemdup rather than duplicating its implementation 2012-01-10 08:56:54 -08:00
crypto.h
debugfs.c
Kconfig ceph: use kernel DNS resolver 2011-10-25 16:10:16 -07:00
Makefile
messenger.c libceph: make ceph_con_revoke_message() a msg op 2012-11-26 11:38:24 -08:00
mon_client.c libceph: make ceph_con_revoke() a msg operation 2012-11-26 11:38:24 -08:00
msgpool.c libceph: don't complain on msgpool alloc failures 2011-10-25 16:10:15 -07:00
osd_client.c libceph: make ceph_con_revoke_message() a msg op 2012-11-26 11:38:24 -08:00
osdmap.c libceph: fix pg_temp updates 2012-11-26 11:38:09 -08:00
pagelist.c
pagevec.c