Spdk/module/bdev/ocf
Gal Hammer a2340f36fa bdev/ocf: Fix set_data callback's data pointer check
The function returns -ENOBUFS when handling OCF_WRITE_FLUSH requests
on a disk with a size which its lower 32-bits are zeros. Zeroing the
request buffer length occurs when creating a new ocf_io and assigning
a 64-bit value to a 32-bit value in vbdev_ocf.c:io_handle.

This patch fixes the condition to check if the request have a payload
(data->iovs) before checking for the size limitation.

Signed-off-by: Gal Hammer <gal.hammer@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
Change-Id: I2c6d03fee32a8fbed7beffdac6fef6a478ea4211
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10896
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2022-04-01 08:29:40 +00:00
..
ctx.c Update ocf to 21.6 2021-10-20 07:22:22 +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 2022-01-31 15:29:56 +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 spelling: module 2021-11-30 09:05:32 +00:00
vbdev_ocf.h spelling: module 2021-11-30 09:05:32 +00:00
volume.c bdev/ocf: Fix set_data callback's data pointer check 2022-04-01 08:29:40 +00:00
volume.h bdev/ocf: OCF 20.12.1 requirements 2021-03-18 14:33:55 +00:00