bdev: fix type of spdk_bdev_io::parent field
It is always a spdk_bdev_io pointer, so avoid the need for casting back and forth between that and a void pointer. Change-Id: I41ac8801d6bec555a264ab66ddb72390ad879c01 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
70ba1ba7cc
commit
97020b7ab6
@ -257,7 +257,7 @@ struct spdk_bdev_io {
|
||||
enum spdk_bdev_io_status status;
|
||||
|
||||
/** Used in virtual device (e.g., RAID), indicates its parent spdk_bdev_io **/
|
||||
void *parent;
|
||||
struct spdk_bdev_io *parent;
|
||||
|
||||
/** Used in virtual device (e.g., RAID) for storing multiple child device I/Os **/
|
||||
TAILQ_HEAD(child_io, spdk_bdev_io) child_io;
|
||||
|
Loading…
Reference in New Issue
Block a user