From b71a8624cfdf28ddc2f895064cdcc87cf5152d47 Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Fri, 14 May 2021 17:11:31 +0800 Subject: [PATCH] bdev: add maximum write zeroes setting Then we can enable the split for write zeroes request in bdev layer. Change-Id: I1341512994b061728cf8c94c0e4e7f86dbc53ce3 Signed-off-by: Changpeng Liu Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7873 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Aleksey Marchuk Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto Reviewed-by: Ziye Yang --- include/spdk/bdev_module.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/spdk/bdev_module.h b/include/spdk/bdev_module.h index cfc212d32f..1b44011f12 100644 --- a/include/spdk/bdev_module.h +++ b/include/spdk/bdev_module.h @@ -356,6 +356,9 @@ struct spdk_bdev { /* Maximum unmap block segments */ uint32_t max_unmap_segments; + /* Maximum write zeroes in unit of logical block */ + uint32_t max_write_zeroes; + /** * UUID for this bdev. *