]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
libceph: gracefully handle large reply messages from the mon
authorSage Weil <sage@redhat.com>
Mon, 4 Aug 2014 14:01:54 +0000 (07:01 -0700)
committerJiri Slaby <jslaby@suse.cz>
Wed, 17 Sep 2014 20:54:15 +0000 (22:54 +0200)
commita1f3bee285ee52c8658ca2360a74a768417dc21f
tree0c2857432c29c17fa141b4fa06b7ae7aa22df1d0
parent2b84b406a9083b1f8f67d195c2e93111f9887b99
libceph: gracefully handle large reply messages from the mon

commit 73c3d4812b4c755efeca0140f606f83772a39ce4 upstream.

We preallocate a few of the message types we get back from the mon.  If we
get a larger message than we are expecting, fall back to trying to allocate
a new one instead of blindly using the one we have.

Signed-off-by: Sage Weil <sage@redhat.com>
Reviewed-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/ceph/mon_client.c