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

2022-05-05 Thread David Marchand
Hello, On Thu, May 5, 2022 at 7:42 AM Wenwu Ma wrote: > > 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 re

[PATCH] vhost: fix deadlock when handling user messages

2022-05-04 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. Signed-off-by: Wenwu Ma --- lib/vhost/vhost_user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vhost