diff options
author | 2011-04-27 19:54:20 +0200 | |
---|---|---|
committer | 2011-04-28 13:01:36 +0200 | |
commit | 73ef4aeb61b53fce464a7e24ef03a26f98b2f617 (patch) | |
tree | 15acc5d7ded643ccd1da1d502033822a2452497c /fs/jbd2/commit.c | |
parent | signal: retarget_shared_pending: optimize while_each_thread() loop (diff) | |
download | linux-rng-73ef4aeb61b53fce464a7e24ef03a26f98b2f617.tar.xz linux-rng-73ef4aeb61b53fce464a7e24ef03a26f98b2f617.zip |
signal: sigprocmask: narrow the scope of ->siglock
No functional changes, preparation to simplify the review of the next change.
1. We can read current->block lockless, nobody else can ever change this mask.
2. Calculate the resulting sigset_t outside of ->siglock into the temporary
variable, then take ->siglock and change ->blocked.
Also, kill the stale comment about BKL.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Matt Fleming <matt.fleming@linux.intel.com>
Acked-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions