numam-spdk/module/bdev/ocf
Rafal Stefanowski 074a63d507 bdev/ocf: Fix devices block size mismatch
OCF creates vbdev with block size equal in size with a core device.
We need to ensure that cache's bdev block size is not bigger than
core's bdev block size, so there are no IO errors due to IO length
smaller than cache device's block size.
The reason why this is implemented late in the cache start and not
as soon as we want to construct OCF vbdev is that cache or core
device can be added later after OCF vbdev creation and only then
we are certain to have both devices to compare.

Fixes #2088

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
Change-Id: I536c783ca71b52f212217c597b7997f2d2e89491
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9229
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-08-20 07:27:43 +00:00
..
ctx.c bdev/ocf: OCF 20.12.1 requirements 2021-03-18 14:33:55 +00:00
ctx.h bdev/ocf: OCF 20.12.1 requirements 2021-03-18 14:33:55 +00:00
data.c mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
data.h bdev/ocf: OCF 20.12.1 requirements 2021-03-18 14:33:55 +00:00
Makefile so_ver: increase all major versions 2021-02-05 14:43:47 +00:00
stats.c ocf: update ocf submodule to v20.3 2020-04-17 07:32:48 +00:00
stats.h ocf: update ocf submodule to v20.3 2020-04-17 07:32:48 +00:00
utils.c bdev/ocf: Improve cache line size handling 2021-05-11 11:56:04 +00:00
utils.h bdev/ocf: Improve cache line size handling 2021-05-11 11:56:04 +00:00
vbdev_ocf_rpc.c ocf/rpc: Add bdev_ocf_set_cache_mode method 2021-03-18 14:39:09 +00:00
vbdev_ocf.c bdev/ocf: Fix devices block size mismatch 2021-08-20 07:27:43 +00:00
vbdev_ocf.h ocf/rpc: Add bdev_ocf_set_cache_mode method 2021-03-18 14:39:09 +00:00
volume.c log: remove internal log.h header 2020-10-15 08:23:39 +00:00
volume.h bdev/ocf: OCF 20.12.1 requirements 2021-03-18 14:33:55 +00:00