RE: [PATCH v2] vhost: fix deadlock when handling user messages

2022-05-06 Thread Xia, Chenbo
> -Original Message- > From: Ma, WenwuX > Sent: Friday, May 6, 2022 12:17 AM > To: maxime.coque...@redhat.com; Xia, Chenbo ; > dev@dpdk.org > Cc: Hu, Jiayu ; Wang, Yinan ; He, > Xingguang ; Ma, WenwuX ; > sta...@dpdk.org > Subject: [PATCH v2] vhost: fix

[PATCH v2] vhost: fix deadlock when handling user messages

2022-05-05 Thread Wenwu Ma
In vhost_user_msg_handler(), if vhost message handling failed, we should check whether the queue is locked and release the lock before returning. Or, it will cause a deadlock later. Fixes: 7f31d4ea05ca ("vhost: fix lock on device readiness notification") Cc: sta...@dpdk.org Signed-off-by: Wenwu M