History

vhost_task_create: kill unnecessary .exit_signal initialization

The only reason for this janitorial change is that this initialization adds unnecessary noise to "git grep exit_signal". args.exit_signal has no effect with CLONE_THREAD, not to mention it is zero-initialized by the compiler anyway.

Oleg Nesterov committed 7 months ago

Commit 476a8471 parent b20b0861 file · +0 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/vhost_task.c+0−1
@@ -123,7 +123,6 @@ struct vhost_task *vhost_task_create(bool (*fn)(void *), · 122 unmodified lines
123 struct kernel_clone_args args = {123 struct kernel_clone_args args = {
124 .flags = CLONE_FS | CLONE_UNTRACED | CLONE_VM |124 .flags = CLONE_FS | CLONE_UNTRACED | CLONE_VM |
125 CLONE_THREAD | CLONE_SIGHAND,125 CLONE_THREAD | CLONE_SIGHAND,
126 .exit_signal = 0,
127 .fn = vhost_task_fn,126 .fn = vhost_task_fn,
128 .name = name,127 .name = name,
129 .user_worker = 1,128 .user_worker = 1,