]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
blk: avoid temporary bptrs on aio paths; use ptr_node instead. 39132/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 28 Jan 2021 12:15:56 +0000 (13:15 +0100)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 28 Jan 2021 12:27:20 +0000 (13:27 +0100)
commitabf7c43ae363c7d7dde4ca98f3a155203c9c4692
treeb69b485b8c5ef67601ef321a1acc423c8a8b9fdf
parent72cc819b3aa47cdb684577be1f33021aa9fd2faf
blk: avoid temporary bptrs on aio paths; use ptr_node instead.

This is a slight optimization for the `HAVE_LIBAIO` paths
of the kernel-based `BlockDevice` implementation.
The overall idea is to squeeze temporary, short-living
instances of `ceph::bufferptr` as `ceph::bufferlist`
actually aggregates `ptr_node` (`bufferptr` with the extra
`next` pointer field to form a list). It can be created
directly and this commit switches to exactly this behavior.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/blk/kernel/KernelDevice.cc