bdev: added iovs to bdev_io->unmap & flush

This is a mid-step towards unifying all direct
bdev_io types.

Change-Id: Ie4da108f2710891e503eb0863148d8fa182d44ee
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/379291
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Dariusz Stojaczyk 2017-09-20 15:02:09 +02:00 committed by Jim Harris
parent c644fb069f
commit 9663f84395

View File

@ -305,6 +305,15 @@ struct spdk_bdev_io {
uint64_t offset_blocks;
} write;
struct {
/** For basic write case, use our own iovec element */
struct iovec iov;
/** For SG buffer cases, array of iovecs to transfer. */
struct iovec *iovs;
/** For SG buffer cases, number of iovecs in iovec array. */
int iovcnt;
/** Total size of region to be unmapped. */
uint64_t num_blocks;
@ -312,6 +321,15 @@ struct spdk_bdev_io {
uint64_t offset_blocks;
} unmap;
struct {
/** For basic write case, use our own iovec element */
struct iovec iov;
/** For SG buffer cases, array of iovecs to transfer. */
struct iovec *iovs;
/** For SG buffer cases, number of iovecs in iovec array. */
int iovcnt;
/** Represents the number of blocks to be flushed, starting at offset_blocks. */
uint64_t num_blocks;