+11
−19
Loading
Simplify the code path a bit. VFIO notification is the only place where detach callback is called from the dpdk intr thread. Detach checks the current thread and behaves differently in this case, but it could be the VFIO notification that simply calls a different function. So instead of carrying the VFIO notification through the generic detach routine, carry it just through the DPDK-thread specific subset. This lets us remove some ifs in the generic routine. Change-Id: I5e8866e4643ef08fb3cd12621e2d262b5e827c74 Signed-off-by:Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1731 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>