diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2016-02-09 17:50:15 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-03-25 18:51:43 +0100 |
commit | 3f1af42ad0fad8a12242233dd0d9fc42f5e83415 (patch) | |
tree | eabe7d5ed3f48fb23c2caa777a4436df67103b29 /net/hsr/hsr_framereg.c | |
parent | libceph: osdc->req_mempool should be backed by a slab pool (diff) | |
download | linux-3f1af42ad0fad8a12242233dd0d9fc42f5e83415.tar.xz linux-3f1af42ad0fad8a12242233dd0d9fc42f5e83415.zip |
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 <idryomov@gmail.com>
Diffstat (limited to 'net/hsr/hsr_framereg.c')
0 files changed, 0 insertions, 0 deletions