ceph: warn on allocation from msgpool with larger front_len
authorSage Weil <sage@newdream.net>
Thu, 15 Oct 2009 00:36:07 +0000 (17:36 -0700)
committerSage Weil <sage@newdream.net>
Fri, 16 Oct 2009 01:14:43 +0000 (18:14 -0700)
commit8f3bc053c610826a657714649ea596f07875db2e
tree97823cb2a202439bb9f9839e2d326ac95d728dd0
parent07bd10fb9853a41a7f0bb271721cca97d15eccae
ceph: warn on allocation from msgpool with larger front_len

Pass the front_len we need when pulling a message off a msgpool,
and WARN if it is greater than the pool's size.  Then try to
allocate a new message (to continue without failing).

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/mon_client.c
fs/ceph/msgpool.c
fs/ceph/msgpool.h
fs/ceph/osd_client.c