]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/ceph/file.c
ceph: combine as many iovec as possile into one OSD request
authorZhu, Caifeng <zhucaifeng@unissoft-nj.com>
Thu, 8 Oct 2015 07:26:15 +0000 (15:26 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Nov 2015 22:36:47 +0000 (23:36 +0100)
commitb5b98989dc7ed2093aeb76f2d0db79888582b0a2
tree5684938d5d0441c609a39d6211d82639d0b90918
parent777d738a5e58ba3b6f3932ab1543ce93703f4873
ceph: combine as many iovec as possile into one OSD request

Both ceph_sync_direct_write and ceph_sync_read iterate iovec elements
one by one, send one OSD request for each iovec. This is sub-optimal,
We can combine serveral iovec into one page vector, and send an OSD
request for the whole page vector.

Signed-off-by: Zhu, Caifeng <zhucaifeng@unissoft-nj.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/file.c