Staging
v0.5.1
https://github.com/torvalds/linux
Revision 3f1af42ad0fad8a12242233dd0d9fc42f5e83415 authored by Ilya Dryomov on 09 February 2016, 16:50:15 UTC, committed by Ilya Dryomov on 25 March 2016, 17:51:43 UTC
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>
1 parent 9e767ad
History
Tip revision: 3f1af42ad0fad8a12242233dd0d9fc42f5e83415 authored by Ilya Dryomov on 09 February 2016, 16:50:15 UTC
libceph: enable large, variable-sized OSD requests
Tip revision: 3f1af42
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.4 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 340.3 KB
Makefile -rw-r--r-- 54.1 KB
README -rw-r--r-- 18.1 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top