eal: fix race condition in IPC request
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 2 Mar 2018 08:41:37 +0000 (08:41 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 21 Mar 2018 08:50:31 +0000 (09:50 +0100)
commitda5957821bdd684a50dcb639fb7798936fb2d981
tree800091ac6d970e0f922df00cc8cb508e573c6af1
parent139653a09a485bf550e00964ce2c81a2991a7530
eal: fix race condition in IPC request

Unlocking the action list before sending message and locking it
again afterwards introduces a window where a response might
arrive before we have a chance to start waiting on a condition,
resulting in timeouts on valid messages.

Fixes: 783b6e54971d ("eal: add synchronous multi-process communication")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
lib/librte_eal/common/eal_common_proc.c