bdev/delay: Set zcopy I/O type to be unsupported regardless of backend bdev module
Delay bdev module does not support delaying zcopy I/O. So change vbdev_delay_io_type_supported() to return false if the passed I/O type is zcopy to clarify the use case of delay bdev module. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Icea5ae351d7139250710ce491e4ac466b0cc7f98 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2622 Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
a954d2bf30
commit
82d77ca6f5
@ -454,8 +454,12 @@ vbdev_delay_io_type_supported(void *ctx, enum spdk_bdev_io_type io_type)
|
||||
{
|
||||
struct vbdev_delay *delay_node = (struct vbdev_delay *)ctx;
|
||||
|
||||
if (io_type == SPDK_BDEV_IO_TYPE_ZCOPY) {
|
||||
return false;
|
||||
} else {
|
||||
return spdk_bdev_io_type_supported(delay_node->base_bdev, io_type);
|
||||
}
|
||||
}
|
||||
|
||||
static struct spdk_io_channel *
|
||||
vbdev_delay_get_io_channel(void *ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user