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:
Daniel Verkamp 2016-08-29 14:23:25 -07:00 committed by Ben Walker
parent 70ba1ba7cc
commit 97020b7ab6

View File

@ -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;