Commit 025997a0 authored by Seth Howell's avatar Seth Howell Committed by Jim Harris
Browse files

bdev: pack internal fields of spdk_bdev_io.



Change-Id: I98ef0cfe535d02cb8e25d76b6641b80ca04077d3
Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/418222


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent d36ce206
Loading
Loading
Loading
Loading
+15 −15
Original line number Diff line number Diff line
@@ -365,6 +365,21 @@ struct spdk_bdev_io {
	 *  must not read or write to these fields.
	 */
	struct __bdev_io_internal_fields {
		/** The bdev I/O channel that this was handled on. */
		struct spdk_bdev_channel *ch;

		/** The bdev I/O channel that this was submitted on. */
		struct spdk_bdev_channel *io_submit_ch;

		/** User function that will be called when this completes */
		spdk_bdev_io_completion_cb cb;

		/** Context that will be passed to the completion callback */
		void *caller_ctx;

		/** Current tsc at submit time. Used to calculate latency at completion. */
		uint64_t submit_tsc;

		/** Error information from a device */
		union {
			/** Only valid when status is SPDK_BDEV_IO_STATUS_NVME_ERROR */
@@ -387,21 +402,6 @@ struct spdk_bdev_io {
			} scsi;
		} error;

		/** The bdev I/O channel that this was handled on. */
		struct spdk_bdev_channel *ch;

		/** The bdev I/O channel that this was submitted on. */
		struct spdk_bdev_channel *io_submit_ch;

		/** User function that will be called when this completes */
		spdk_bdev_io_completion_cb cb;

		/** Context that will be passed to the completion callback */
		void *caller_ctx;

		/** Current tsc at submit time. Used to calculate latency at completion. */
		uint64_t submit_tsc;

		/**
		 * Set to true while the bdev module submit_request function is in progress.
		 *