Eric W. Biederman e0e8eb54d8 [PATCH] unshare: Use rcu_assign_pointer when setting sighand
The sighand pointer only needs the rcu_read_lock on the
read side.  So only depending on task_lock protection
when setting this pointer is not enough.  We also need
a memory barrier to ensure the initialization is seen first.

Use rcu_assign_pointer as it does this for us, and clearly
documents that we are setting an rcu readable pointer.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Paul E. McKenney <paulmck@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-17 07:46:59 -08:00
..
2006-01-08 20:13:48 -08:00
2006-01-11 18:42:13 -08:00
2006-01-18 19:20:30 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-30 17:37:32 -08:00
2006-01-11 18:42:13 -08:00
2005-10-08 15:00:57 -07:00
2005-10-30 17:37:17 -08:00
2006-01-09 15:59:19 -08:00
2006-01-08 20:13:40 -08:00
2005-07-07 18:23:46 -07:00
2006-03-08 14:14:01 -08:00
2005-04-16 15:20:36 -07:00
2005-09-10 10:06:21 -07:00
2006-02-07 20:57:47 -05:00
2006-03-08 14:14:01 -08:00
2006-01-11 18:42:13 -08:00
2005-04-16 15:20:36 -07:00