+18
−5
Loading
We used to call potentially-asynchronous foreach_session() in vdev initialization path and that was perfectly fine because at that time there were no sessions created and foreach_session() was always finishing synchronously. We're about to refactor it to be always asynchronous, and for this coalescing case it could complicate the init error path. Once asynchronous thread msg is sent, we would need to wait for it to complete and we just don't want to do that. We want error handling to be simple. Since we know there are no sessions at the time of vdev creation, we just add a new function for setting coalescing params just for vdev (and not for its sessions) and we use that function in vdev init code. Change-Id: I44d204d03b5040525e4871693678d4b4a0204e63 Signed-off-by:Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459196 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>