]> git.ipfire.org Git - thirdparty/qemu.git/commit
contrib/libvhost-user: Protect slave fd with mutex
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 1 Mar 2019 11:18:30 +0000 (11:18 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:37 +0000 (16:41 +0000)
commitc25c02b9e6a196be87a818f459c426556b24770d
treef15922ebddc7d38806b3ed54d6982b8a13184ad3
parent0fdc465d7d5aafeae127eba488f247ac6f58df4c
contrib/libvhost-user: Protect slave fd with mutex

In future patches we'll be performing commands on the slave-fd driven
by commands on queues, since those queues will be driven by individual
threads we need to make sure they don't attempt to use the slave-fd
for multiple commands in parallel.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
contrib/libvhost-user/libvhost-user.c
contrib/libvhost-user/libvhost-user.h