Skip to content

make task_struct->signal stable

Oleg Nesterov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3make task_struct->signal immutable/refcountableinclude/linux/sched.h kernel/exit.c kernel/fork.c+17 -111 reply
2/3clear signal->tty when the last thread exitskernel/exit.c+4 -15 replies
3/3kill the awful task_rq_unlock_wait() hackinclude/linux/sched.h kernel/exit.c kernel/sched.c+0 -141 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchRoland McGrath
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] make task_struct->signal stable

Depends on

	[PATCH 1/4] exit: exit_notify() can trust signal->notify_count < 0
	[PATCH 2/4] exit: change zap_other_threads() to count sub-threads
	[PATCH 3/4] exit: avoid sig->count in de_thread/__exit_signal synchronization
	[PATCH 4/4] exit: avoid sig->count in __exit_signal() to detect the group-dead case

	[PATCH 1/2] posix-cpu-timers: avoid "task->signal != NULL" checks
	[PATCH 2/2] ia64: ptrace_attach_sync_user_rbs: avoid "task->signal != NULL" checks

	[PATCH] move tty_kref_put() outside of __cleanup_signal()

See the changelog in 1/3. IIRC, this was suggested by Ingo a long ago.

Note! This series is not complete, it needs some conclusive cleanups and a lot more cleanups are possible because task->signal is never NULL. 3/3 is the "random" example.

Oleg.