]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
signals: eventpoll: set ->saved_sigmask at the start
authorOleg Nesterov <oleg@redhat.com>
Wed, 3 Jul 2013 00:21:35 +0000 (10:21 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 17 Jul 2013 02:35:01 +0000 (12:35 +1000)
commita90a5003c40a2a9d5af0254fdd93acab1358893d
treecfac5e34fa4ab874dab2b4982789f48fde260193
parentce9c6a13f9633b32013538772bd22aa0f8cac0e4
signals: eventpoll: set ->saved_sigmask at the start

task_struct->saved_sigmask has no meaning unless we return with
set_restore_sigmask() and nobody except current can use it.

This means that sys_epoll_pwait() doesn't need to save ->blocked
into the local var and then memcopy it into ->saved_sigmask, we
can simply set ->saved_sigmask right before set_current_blocked().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Eric Wong <normalperson@yhbt.net>
Cc: Jason Baron <jbaron@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/eventpoll.c