bdev: introduce unmap attributes to bdev layer

The backend device module can report such capabilities
to the bdev layer, and we can split unmap request into
multiple children requests in the bdev layer.

Change-Id: I81daf7e58b797a2673ef102f2a037de20771092e
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7515
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Changpeng Liu 2021-04-20 18:05:33 +08:00 committed by Tomasz Zawadzki
parent 518d28dba9
commit f6d5b9cd92

View File

@ -343,6 +343,12 @@ struct spdk_bdev {
/* Maximum number of segments in a I/O */
uint32_t max_num_segments;
/* Maximum unmap in unit of logical block */
uint32_t max_unmap;
/* Maximum unmap block segments */
uint32_t max_unmap_segments;
/**
* UUID for this bdev.
*