]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/ceph/messenger.c
ceph: reset front len on return to msgpool; BUG on mismatched front iov
authorSage Weil <sage@newdream.net>
Mon, 1 Mar 2010 23:25:00 +0000 (15:25 -0800)
committerSage Weil <sage@newdream.net>
Mon, 1 Mar 2010 23:25:00 +0000 (15:25 -0800)
commit3ca02ef96e119d36bc1752baeae7dd0c59c2f325
tree5ef2a149d0f67b3f59fd5c4b168712046f7ce7f2
parent70edb55bdfa8922c8ad40bc5a67abb6d9fee8d47
ceph: reset front len on return to msgpool; BUG on mismatched front iov

Reset msg front len when a message is returned to the pool: the caller
may have changed it.

BUG if we try to send a message with a hdr.front_len that doesn't match
the front iov.

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