]> git.droids-corp.org - dpdk.git/commit
vhost: fix deadlock when message handling failed
authorWenwu Ma <wenwux.ma@intel.com>
Sat, 7 May 2022 13:27:53 +0000 (13:27 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 1 Jun 2022 09:50:09 +0000 (11:50 +0200)
commit9e89b06d027c6087624f36f288bd82c643c5a269
tree64accec0fb46b81b754f2fce1483fc6caee2d234
parenta543dcb70c5ca87bb95dcf419743dc36f4412b63
vhost: fix deadlock when message handling failed

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: stable@dpdk.org
Signed-off-by: Wenwu Ma <wenwux.ma@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Tested-by: Wei Ling <weix.ling@intel.com>
Acked-by: David Marchand <david.marchand@redhat.com>
lib/vhost/vhost_user.c