vhost_task_create: kill unnecessary .exit_signal initialization
PATCH 1/1 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.
Signed-off-by Oleg Nesterov <[email protected]>
--- kernel/vhost_task.c | 1 - 1 file changed, 1 deletion(-)
kernel/vhost_task.c +0 -1
@@ -123,7 +123,6 @@ struct vhost_task *vhost_task_create(bool (*fn)(void *),struct kernel_clone_args args = { .flags =CLONE_FS |CLONE_UNTRACED |CLONE_VM |CLONE_THREAD |CLONE_SIGHAND , - .exit_signal =0 , .fn = vhost_task_fn, .name = name, .user_worker =1 ,
Signature · 1 line
2.52.0
Quoted 25 lines · Oleg Nesterov
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.Signed-off-by Oleg Nesterov <[email protected]>--- kernel/vhost_task.c | 1 - 1 file changed, 1 deletion(-)kernel/vhost_task.c +0
-2@@ -123,7 +123,6 @@ struct vhost_task *vhost_task_create(bool (*fn)(void *),struct kernel_clone_args args = { .flags =CLONE_FS |CLONE_UNTRACED |CLONE_VM |CLONE_THREAD |CLONE_SIGHAND , - .exit_signal =0 , .fn = vhost_task_fn, .name = name, .user_worker =1 , --
Quoted 3 lines
2.52.0
Acked-by Jason Wang <[email protected]>
Thanks