From: Oleg Nesterov Date: Wed, 27 Apr 2011 19:18:10 +0000 (+0200) Subject: signal: cleanup sys_rt_sigprocmask() X-Git-Tag: v3.0-rc1~382^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb7efee2ca63b08795ffb3cda96fc89d2e641b79;p=pandora-kernel.git 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 Reviewed-by: Matt Fleming Acked-by: Tejun Heo --- Reading git-diff-tree failed