Sage Weil 9bd952615a libceph: avoid NULL kref_put when osd reset races with alloc_msg
The ceph_on_in_msg_alloc() method drops con->mutex while it allocates a
message.  If that races with a timeout that resends a zillion messages and
resets the connection, and the ->alloc_msg() method returns a NULL message,
it will call ceph_msg_put(NULL) and BUG.

Fix by only calling put if msg is non-NULL.

Fixes http://tracker.newdream.net/issues/3142

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-24 16:19:19 -07:00
..
2012-07-30 18:15:23 -07:00
2012-04-15 12:44:40 -04:00
2011-03-29 12:11:16 -07:00
2010-11-21 10:04:04 -08:00
2011-07-19 11:25:04 -07:00
2011-10-25 16:10:16 -07:00
2012-10-01 14:30:49 -05:00
2012-10-01 17:20:00 -05:00