]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: make encode_request_*() work with r_mempool requests
authorIlya Dryomov <idryomov@gmail.com>
Tue, 25 Jul 2017 12:40:03 +0000 (14:40 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 1 Aug 2017 14:46:31 +0000 (16:46 +0200)
commit246b172242c7c84332d1c1850af7893b0d4fa583
treea4705d5fefe0618e34d5f91166e35ca5fccdb967
parent8b74f4f4576ba4882ca9e92e5c3794c2476fd0af
libceph: make encode_request_*() work with r_mempool requests

Messages allocated out of ceph_msgpool have a fixed front length
(pool->front_len).  Asserting that the entire front has been filled
while encoding is thus wrong.

Fixes: 634af9354ad8 ("libceph: MOSDOp v8 encoding (actual spgid + full hash)")
Reported-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
net/ceph/osd_client.c