diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2023-04-04 16:17:29 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-04-21 10:02:33 +0300 |
commit | d7621c28fca1c16f9e94245479792024a5676c50 (patch) | |
tree | cbf1d21fd127c808cab3a1a21c65ef0b7f6705eb /tools/perf/scripts/python/syscall-counts.py | |
parent | 76acfa7bc54f1e3b9dde396e0a3534493419fd6f (diff) | |
download | linux-d7621c28fca1c16f9e94245479792024a5676c50.tar.xz |
vdpa_sim: replace the spinlock with a mutex to protect the state
The spinlock we use to protect the state of the simulator is sometimes
held for a long time (for example, when devices handle requests).
This also prevents us from calling functions that might sleep (such as
kthread_flush_work() in the next patch), and thus having to release
and retake the lock.
For these reasons, let's replace the spinlock with a mutex that gives
us more flexibility.
Suggested-by: Jason Wang <jasowang@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20230404131730.45920-1-sgarzare@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions