diff options
author | Mike Christie <michael.christie@oracle.com> | 2024-03-16 01:47:07 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-05-22 14:31:15 +0200 |
commit | 240a1853b4d2bce51e5cac9ba65cd646152ab6d6 (patch) | |
tree | 15da08dba9be4380f9e08b8a7f2167132dec421d /fs/coredump.c | |
parent | vhost_task: Handle SIGKILL by flushing work and exiting (diff) | |
download | linux-240a1853b4d2bce51e5cac9ba65cd646152ab6d6.tar.xz linux-240a1853b4d2bce51e5cac9ba65cd646152ab6d6.zip |
kernel: Remove signal hacks for vhost_tasks
This removes the signal/coredump hacks added for vhost_tasks in:
Commit f9010dbdce91 ("fork, vhost: Use CLONE_THREAD to fix freezer/ps regression")
When that patch was added vhost_tasks did not handle SIGKILL and would
try to ignore/clear the signal and continue on until the device's close
function was called. In the previous patches vhost_tasks and the vhost
drivers were converted to support SIGKILL by cleaning themselves up and
exiting. The hacks are no longer needed so this removes them.
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Message-Id: <20240316004707.45557-10-michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'fs/coredump.c')
-rw-r--r-- | fs/coredump.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/coredump.c b/fs/coredump.c index be6403b4b14b..8eae24afb3cb 100644 --- a/fs/coredump.c +++ b/fs/coredump.c @@ -371,9 +371,7 @@ static int zap_process(struct task_struct *start, int exit_code) if (t != current && !(t->flags & PF_POSTCOREDUMP)) { sigaddset(&t->pending.signal, SIGKILL); signal_wake_up(t, 1); - /* The vhost_worker does not particpate in coredumps */ - if ((t->flags & (PF_USER_WORKER | PF_IO_WORKER)) != PF_USER_WORKER) - nr++; + nr++; } } |