bdev/lvol: inherit need_aligned_buffer of base bdev

Logical volume store bdevs should report the same buffer alignment
requirements as the base bdev of the logical volume store.  For example,
a lvolstore on a Linux AIO bdev should require aligned buffers.

Fixes #307.

Change-Id: I8e40dd428db882d18546caf678d1d4ef4462e2b4
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/412064
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Daniel Verkamp 2018-05-22 09:18:21 -07:00
parent e95f0bb756
commit 475165dffe

View File

@ -899,6 +899,7 @@ _create_lvol_disk(struct spdk_lvol *lvol)
assert((total_size % bdev->blocklen) == 0);
bdev->blockcnt = total_size / bdev->blocklen;
bdev->uuid = lvol->uuid;
bdev->need_aligned_buffer = lvs_bdev->bdev->need_aligned_buffer;
bdev->ctxt = lvol;
bdev->fn_table = &vbdev_lvol_fn_table;