mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
libceph: enable large, variable-sized OSD requests
Turn r_ops into a flexible array member to enable large, consisting of up to 16 ops, OSD requests. The use case is scattered writeback in cephfs and, as far as the kernel client is concerned, 16 is just a made up number. r_ops had size 3 for copyup+hint+write, but copyup is really a special case - it can only happen once. ceph_osd_request_cache is therefore stuffed with num_ops=2 requests, anything bigger than that is allocated with kmalloc(). req_mempool is backed by ceph_osd_request_cache, which means either num_ops=1 or num_ops=2 for use_mempool=true - all existing users (ceph_writepages_start(), ceph_osdc_writepages()) are fine with that. Signed-off-by: Ilya Dryomov <[email protected]>
This commit is contained in:
parent
9e767adbd3
commit
3f1af42ad0
3 changed files with 32 additions and 19 deletions
|
|
@ -1847,8 +1847,6 @@ static void rbd_osd_req_callback(struct ceph_osd_request *osd_req,
|
|||
if (osd_req->r_result < 0)
|
||||
obj_request->result = osd_req->r_result;
|
||||
|
||||
rbd_assert(osd_req->r_num_ops <= CEPH_OSD_MAX_OP);
|
||||
|
||||
/*
|
||||
* We support a 64-bit length, but ultimately it has to be
|
||||
* passed to the block layer, which just supports a 32-bit
|
||||
|
|
|
|||
Loading…
Reference in a new issue