Commit f87bd12c authored by Ben Walker's avatar Ben Walker Committed by Jim Harris
Browse files

bdev/nvme: Rearrange struct nvme_bdev_io to remove holes



Clean up some holes to get the structure packed better.

Change-Id: Iaa682afd17f91502814551b15cee9100aa1ec9e6
Signed-off-by: default avatarBen Walker <ben@nvidia.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22491


Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 8df37f7f
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -54,10 +54,8 @@ struct nvme_bdev_io {
	/** Offset in current iovec. */
	uint32_t iov_offset;

	/** I/O path the current I/O or admin passthrough is submitted on, or the I/O path
	 *  being reset in a reset I/O.
	 */
	struct nvme_io_path *io_path;
	/** Offset in current iovec. */
	uint32_t fused_iov_offset;

	/** array of iovecs to transfer. */
	struct iovec *fused_iovs;
@@ -68,8 +66,10 @@ struct nvme_bdev_io {
	/** Current iovec position. */
	int fused_iovpos;

	/** Offset in current iovec. */
	uint32_t fused_iov_offset;
	/** I/O path the current I/O or admin passthrough is submitted on, or the I/O path
	 *  being reset in a reset I/O.
	 */
	struct nvme_io_path *io_path;

	/** Saved status for admin passthru completion event, PI error verification, or intermediate compare-and-write status */
	struct spdk_nvme_cpl cpl;
@@ -83,18 +83,18 @@ struct nvme_bdev_io {
	/** Keeps track if first of fused commands was completed */
	bool first_fused_completed;

	/* How many times the current I/O was retried. */
	int32_t retry_count;

	/** Expiration value in ticks to retry the current I/O. */
	uint64_t retry_ticks;

	/** Temporary pointer to zone report buffer */
	struct spdk_nvme_zns_zone_report *zone_report_buf;

	/** Keep track of how many zones that have been copied to the spdk_bdev_zone_info struct */
	uint64_t handled_zones;

	/** Expiration value in ticks to retry the current I/O. */
	uint64_t retry_ticks;

	/* How many times the current I/O was retried. */
	int32_t retry_count;

	/* Current tsc at submit time. */
	uint64_t submit_tsc;