diff options
author | Mike Christie <michael.christie@oracle.com> | 2023-06-27 01:23:07 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-07-03 18:15:14 +0200 |
commit | 228a27cf78afc63a18f744a56740d26570ecaec0 (patch) | |
tree | fdf9c8bba4cd440f58f01608456de91c3e5d08c6 /drivers/vdpa | |
parent | vhost_scsi: add support for worker ioctls (diff) | |
download | linux-228a27cf78afc63a18f744a56740d26570ecaec0.tar.xz linux-228a27cf78afc63a18f744a56740d26570ecaec0.zip |
vhost: Allow worker switching while work is queueing
This patch drops the requirement that we can only switch workers if work
has not been queued by using RCU for the vq based queueing paths and a
mutex for the device wide flush.
We can also use this to support SIGKILL properly in the future where we
should exit almost immediately after getting that signal. With this
patch, when get_signal returns true, we can set the vq->worker to NULL
and do a synchronize_rcu to prevent new work from being queued to the
vhost_task that has been killed.
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Message-Id: <20230626232307.97930-18-michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions