module/raid: move struct definition up
In prep for upcoming patch that needs it declared earlier. Change-Id: Ia618d95108c0ab5e71618470ac36f822a9aa0129 Signed-off-by: paul luse <paul.e.luse@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/467552 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Maciej Szwed <maciej.szwed@intel.com>
This commit is contained in:
parent
024127dcfd
commit
84bd67048f
@ -80,6 +80,24 @@ struct raid_base_bdev_info {
|
|||||||
bool remove_scheduled;
|
bool remove_scheduled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* raid_bdev_io is the context part of bdev_io. It contains the information
|
||||||
|
* related to bdev_io for a raid bdev
|
||||||
|
*/
|
||||||
|
struct raid_bdev_io {
|
||||||
|
/* WaitQ entry, used only in waitq logic */
|
||||||
|
struct spdk_bdev_io_wait_entry waitq_entry;
|
||||||
|
|
||||||
|
/* Original channel for this IO, used in queuing logic */
|
||||||
|
struct spdk_io_channel *ch;
|
||||||
|
|
||||||
|
/* Used for tracking progress on io requests sent to member disks. */
|
||||||
|
uint8_t base_bdev_io_submitted;
|
||||||
|
uint8_t base_bdev_io_completed;
|
||||||
|
uint8_t base_bdev_io_expected;
|
||||||
|
uint8_t base_bdev_io_status;
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* raid_bdev is the single entity structure which contains SPDK block device
|
* raid_bdev is the single entity structure which contains SPDK block device
|
||||||
* and the information related to any raid bdev either configured or
|
* and the information related to any raid bdev either configured or
|
||||||
@ -132,24 +150,6 @@ struct raid_bdev {
|
|||||||
bool destroy_started;
|
bool destroy_started;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
* raid_bdev_io is the context part of bdev_io. It contains the information
|
|
||||||
* related to bdev_io for a raid bdev
|
|
||||||
*/
|
|
||||||
struct raid_bdev_io {
|
|
||||||
/* WaitQ entry, used only in waitq logic */
|
|
||||||
struct spdk_bdev_io_wait_entry waitq_entry;
|
|
||||||
|
|
||||||
/* Original channel for this IO, used in queuing logic */
|
|
||||||
struct spdk_io_channel *ch;
|
|
||||||
|
|
||||||
/* Used for tracking progress on io requests sent to member disks. */
|
|
||||||
uint8_t base_bdev_io_submitted;
|
|
||||||
uint8_t base_bdev_io_completed;
|
|
||||||
uint8_t base_bdev_io_expected;
|
|
||||||
uint8_t base_bdev_io_status;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* raid_base_bdev_config is the per base bdev data structure which contains
|
* raid_base_bdev_config is the per base bdev data structure which contains
|
||||||
* information w.r.t to per base bdev during parsing config
|
* information w.r.t to per base bdev during parsing config
|
||||||
|
Loading…
Reference in New Issue
Block a user