+40
−7
Loading
This fixes a potential deadlock:
Thread 2
* stop_device()
* lock(&g_spdk_vhost_mutex)
* _spdk_vhost_event_send
* sem_wait <- waiting for pending I/O on Thread 1 to complete
Thread 1
* spdk_rpc_construct_vhost_blk_controller
* lock(&g_spdk_vhost_mutex) <- prevents this thread from
completing any I/O
Fixes #437
Change-Id: I50ab7bc6dcd161881650ff30362127e0069a3939
Signed-off-by:
Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/396577
Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by:
Jim Harris <james.r.harris@intel.com>