On Fri, 2012-08-17 at 17:14 +0200, Oleg Nesterov wrote: > I still think that task_work_add() should synhronize with exit_task_work() > itself and fail if necessary. But I wasn't able to convince Al ;)
I'm not at all sure how that relates to needing task_lock() in the keyctl stuff.
Also, can't task_work use llist stuff? That would also avoid using ->pi_lock.