android_kernel_google_msm/net
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
..
9p
802
8021q vlan: don't deliver frames for unknown vlans to protocols 2012-10-28 10:14:15 -07:00
appletalk
atm
ax25
batman-adv
bluetooth Bluetooth: SMP: Fix setting unknown auth_req bits 2012-10-31 10:03:02 -07:00
bridge
caif
can
ceph libceph: make ceph_con_revoke_message() a msg op 2012-11-26 11:38:24 -08:00
core net-rps: Fix brokeness causing OOO packets 2012-11-26 11:37:47 -08:00
dcb
dccp
decnet
dns_resolver
dsa
econet
ethernet
ieee802154
ipv4 netfilter: nf_nat: don't check for port change on ICMP tuples 2012-11-26 11:37:48 -08:00
ipv6 ipv6: setsockopt(IPIPPROTO_IPV6, IPV6_MINHOPCOUNT) forgot to set return value 2012-11-26 11:37:46 -08:00
ipx
irda
iucv
key
l2tp l2tp: fix oops in l2tp_eth_create() error path 2012-11-17 13:16:18 -08:00
lapb
llc
mac80211 mac80211: call skb_dequeue/ieee80211_free_txskb instead of __skb_queue_purge 2012-11-26 11:37:41 -08:00
netfilter netfilter: Mark SYN/ACK packets as invalid from original direction 2012-11-26 11:37:48 -08:00
netlabel
netlink netlink: use kfree_rcu() in netlink_release() 2012-11-17 13:16:14 -08:00
netrom netrom: copy_datagram_iovec can fail 2012-10-13 05:38:45 +09:00
nfc
openvswitch
packet
phonet
rds RDS: fix rds-ping spinlock recursion 2012-10-28 10:14:15 -07:00
rfkill
rose
rxrpc
sched
sctp sctp: fix call to SCTP_CMD_PROCESS_SACK in sctp_cmd_interpreter() 2012-11-17 13:16:13 -08:00
sunrpc SUNRPC: Prevent races in xs_abort_connection() 2012-10-31 10:02:57 -07:00
tipc
unix
wanrouter
wimax
wireless wireless: allow 40 MHz on world roaming channels 12/13 2012-11-26 11:37:46 -08:00
x25
xfrm
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c