diff options
author | Mike Christie <michael.christie@oracle.com> | 2023-03-21 05:06:20 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-04-21 10:02:30 +0300 |
commit | 9a10cb4de33f4c914bd2e33ac05cff3ddb6a67b0 (patch) | |
tree | 96bb671b70021294552587a4d63e16495e25d3f3 /tools/perf/scripts/python/stackcollapse.py | |
parent | 4b6ec919b84830949313c805c586fb34f141ce0c (diff) | |
download | linux-9a10cb4de33f4c914bd2e33ac05cff3ddb6a67b0.tar.xz |
vhost-scsi: Delay releasing our refcount on the tpg
We currently hold the vhost_scsi_mutex the entire time we are running
vhost_scsi_clear_endpoint. One of the reasons for this is that it prevents
userspace from being able to free the se_tpg from under us after we have
called target_undepend_item. However, it forces management operations for
for other devices to have to wait on a flakey device's:
vhost_scsi_clear_endpoint -> vhost_scsi_flush()
call which can which can take a long time.
This moves the target_undepend_item call and the tpg unsetup code to after
we have stopped new IO from starting up and after we have waited on
running IO. We can then release our refcount on the tpg and session
knowing our device is no longer accessing them. We can then drop the
vhost_scsi_mutex use during thee flush call in later patches in this set,
when we have removed other reasons for holding it.
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Message-Id: <20230321020624.13323-4-michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions