diff options
author | Mike Christie <[email protected]> | 2023-03-20 21:06:21 -0500 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2023-04-21 03:02:30 -0400 |
commit | eb1b291466376ad4d2f0a42392a2cd9f0e4983e5 (patch) | |
tree | 4338cd310489fcbc03e903a0648e460bf632caf7 /lib/test_fortify/write_overflow-memset.c | |
parent | 9a10cb4de33f4c914bd2e33ac05cff3ddb6a67b0 (diff) |
vhost-scsi: Drop device mutex use in vhost_scsi_do_plug
We don't need the device mutex in vhost_scsi_do_plug because:
1. we have the vhost_scsi_mutex so the tpg->vhost_scsi pointer will not
change on us and the vhost_scsi can't be freed from under us if it was
set.
2. vhost_scsi_clear_endpoint will stop the virtqueues and flush them while
holding the vhost_scsi_mutex so we know once vhost_scsi_clear_endpoint
has completed that vhost_scsi_do_plug can't send new events and any
queued ones have completed.
So this patch drops the device mutex use in vhost_scsi_do_plug.
Signed-off-by: Mike Christie <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memset.c')
0 files changed, 0 insertions, 0 deletions