diff options
author | Stefano Garzarella <[email protected]> | 2023-04-04 15:17:29 +0200 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2023-04-21 03:02:33 -0400 |
commit | d7621c28fca1c16f9e94245479792024a5676c50 (patch) | |
tree | cbf1d21fd127c808cab3a1a21c65ef0b7f6705eb /drivers/usb/cdns3/cdns3-debug.h | |
parent | 76acfa7bc54f1e3b9dde396e0a3534493419fd6f (diff) |
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 <[email protected]>
Acked-by: Jason Wang <[email protected]>
Signed-off-by: Stefano Garzarella <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions