Re: [PATCH v4 3/9] vhost: terminate when access lock is not taken

2023-01-31 Thread Maxime Coquelin
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: D

[PATCH v4 3/9] vhost: terminate when access lock is not taken

2023-01-19 Thread David Marchand
Be a bit more strict when a programmatic error is detected wrt to the 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 --- lib/vhost/vhost.c | 18 +++---