Oleg Nesterov
bb7efee2ca
signal: cleanup sys_rt_sigprocmask()
...
sys_rt_sigprocmask() looks unnecessarily complicated, simplify it.
We can just read current->blocked lockless unconditionally before
anything else and then copy-to-user it if needed. At worst we
copy 4 words on mips.
We could copy-to-user the old mask first and simplify the code even
more, but the patch tries to keep the current behaviour: we change
current->block even if copy_to_user(oset) fails.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Matt Fleming <matt.fleming@linux.intel.com>
Acked-by: Tejun Heo <tj@kernel.org>
2011-04-28 13:01:38 +02:00
..
2011-03-25 21:04:56 -07:00
2011-03-20 18:14:55 -07:00
2011-03-30 14:13:23 +02:00
2011-03-24 10:16:26 -07:00
2011-04-04 08:31:23 -07:00
2011-03-25 17:53:09 -07:00
2011-03-14 09:15:23 -04:00
2011-03-23 19:46:28 -07:00
2011-03-23 19:47:06 -07:00
2011-03-22 17:43:58 -07:00
2011-03-22 17:44:11 -07:00
2011-03-23 19:46:35 -07:00
2011-03-23 19:47:19 -07:00
2011-03-23 19:47:02 -07:00
2011-04-07 20:44:11 +02:00
2011-03-24 10:16:26 -07:00
2011-03-23 19:47:08 -07:00
2011-03-25 17:52:22 -07:00
2011-03-23 19:47:08 -07:00
2011-03-15 18:53:35 -07:00
2011-03-25 17:52:22 -07:00
2011-04-01 16:14:30 +11:00
2011-03-22 17:44:01 -07:00
2011-03-23 13:54:47 +01:00
2011-03-23 19:47:19 -07:00
2011-03-22 17:44:12 -07:00
2011-03-23 19:47:08 -07:00
2011-03-22 17:44:11 -07:00
2011-03-31 13:02:56 +02:00
2011-03-23 19:46:58 -07:00
2011-03-17 13:08:28 -03:00
2011-03-15 00:43:18 +01:00
2011-03-22 17:44:13 -07:00
2011-04-07 20:44:11 +02:00
2011-03-04 08:05:41 -08:00
2011-03-04 08:05:08 -08:00
2011-03-04 08:05:17 -08:00
2011-03-23 19:46:22 -07:00
2011-03-31 13:00:37 +02:00
2011-03-23 14:09:41 +01:00
2011-03-04 11:12:26 +01:00
2011-03-23 14:09:41 +01:00
2011-03-31 13:00:34 +02:00
2011-04-28 13:01:38 +02:00
2011-03-22 17:44:11 -07:00
2011-03-22 17:44:01 -07:00
2011-03-22 17:44:01 -07:00
2011-03-15 02:21:44 -04:00
2011-03-23 19:47:06 -07:00
2011-03-14 09:15:28 -04:00
2011-03-23 19:46:51 -07:00
2011-03-23 19:46:54 -07:00
2011-03-23 19:47:14 -07:00
2011-03-15 18:53:35 -07:00
2011-03-15 18:53:35 -07:00
2011-03-23 19:47:08 -07:00
2011-03-23 19:46:59 -07:00
2011-03-23 19:47:03 -07:00
2011-03-22 17:44:12 -07:00
2011-03-22 17:44:01 -07:00