This is passing a struct lvol_task that is not nested inside a bdev_io context, which is assumed by lvol_op_comp() in the actual lvol code. There is no problem currently, since lvol_op_comp() happens to not dereference the bdev_io except inside of mocked functions and inside a SPDK_INFOLOG() that does not get executed in the unit tests right now, but this would break if the lvol code ever actually used the bdev_io pointer. Change-Id: Ic3b67f4ecff47e5a98a5be8a83c2524573113aa9 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/418735 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
vbdev_lvol_ut.c |