+13
−22
Loading
We can do all of the completion work first, and then make the decision at the very end on whether to defer the callback or not. This also removes the bdev_io defer_callback member - we no longer need it since we now only defer the callback itself, instead of deferring the full execution of the spdk_bdev_io_complete() routine. Signed-off-by:Jim Harris <james.r.harris@intel.com> Change-Id: I3285e34d2fbce34d4254dca2119561ff825ee9e8 Reviewed-on: https://review.gerrithub.io/365711 Reviewed-by:
Daniel Verkamp <daniel.verkamp@intel.com> Tested-by:
SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com>