summaryrefslogtreecommitdiff
path: root/drivers/dca/Kconfig
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2024-03-16 03:47:04 +0300
committerMichael S. Tsirkin <mst@redhat.com>2024-05-22 15:31:15 +0300
commit34cf9ba5f00a222dddd9fc71de7c68fdaac7fb97 (patch)
tree236d9bc35d266a074a72a0e02526e40347ec9a59 /drivers/dca/Kconfig
parent0352c961cb3542b1c03415259d7b85d99457acff (diff)
downloadlinux-34cf9ba5f00a222dddd9fc71de7c68fdaac7fb97.tar.xz
vhost: Use virtqueue mutex for swapping worker
__vhost_vq_attach_worker uses the vhost_dev mutex to serialize the swapping of a virtqueue's worker. This was done for simplicity because we are already holding that mutex. In the next patches where the worker can be killed while in use, we need finer grained locking because some drivers will hold the vhost_dev mutex while flushing. However in the SIGKILL handler in the next patches, we will need to be able to swap workers (set current one to NULL), kill queued works and stop new flushes while flushes are in progress. To prepare us, this has us use the virtqueue mutex for swapping workers instead of the vhost_dev one. Signed-off-by: Mike Christie <michael.christie@oracle.com> Message-Id: <20240316004707.45557-7-michael.christie@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/dca/Kconfig')
0 files changed, 0 insertions, 0 deletions