diff options
author | Oleg Nesterov <[email protected]> | 2011-04-27 21:18:10 +0200 |
---|---|---|
committer | Oleg Nesterov <[email protected]> | 2011-04-28 13:01:38 +0200 |
commit | bb7efee2ca63b08795ffb3cda96fc89d2e641b79 (patch) | |
tree | 05e05d78f815d9fb8f8963860d2287189a17d7b1 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | e9bd3f0faa90084f188830d77723bafe422e486b (diff) |
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 <[email protected]>
Reviewed-by: Matt Fleming <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions