[PATCH v4 3/9] vhost: terminate when access lock is not taken
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Jan 31 17:47:01 CET 2023
On 1/19/23 19:46, David Marchand wrote:
> Be a bit more strict when a programmatic error is detected wrt to the
with regards to*
> access_lock not being taken.
> Mark the new helper with __rte_assert_exclusive_lock so that clang
> understands where locks are expected to be taken.
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
> lib/vhost/vhost.c | 18 +++---------------
> lib/vhost/vhost.h | 10 ++++++++++
> lib/vhost/virtio_net.c | 6 +-----
> 3 files changed, 14 insertions(+), 20 deletions(-)
>
Nice!
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list