diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-09-25 21:07:14 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-09-25 14:38:13 -0700 |
commit | 77edffb652b33a565e099ff0a1687762f03eb46a (patch) | |
tree | 1e6e9586fc563d867c8737feb855575314deaff7 /arch/alpha/kernel/process.c | |
parent | 56162badadb91aae93843d8d6558c7d7780e3cb2 (diff) | |
download | lwn-77edffb652b33a565e099ff0a1687762f03eb46a.tar.gz lwn-77edffb652b33a565e099ff0a1687762f03eb46a.zip |
alpha: fix hae_cache race in RESTORE_ALL
We want interrupts disabled on all paths leading to RESTORE_ALL;
otherwise, we are risking an IRQ coming between the updates of
alpha_mv->hae_cache and *alpha_mv->hae_register and set_hae()
within the IRQ getting badly confused.
RESTORE_ALL used to play with disabling IRQ itself, but that got
removed back in 2002, without making sure we had them disabled
on all paths. It's cheaper to make sure we have them disabled than
to revert to original variant...
Remove the detritus left from that commit back in 2002; we used to
need a reload of $0 and $1 since swpipl would change those, but
doing that had become pointless when we stopped doing swpipl in
there...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/alpha/kernel/process.c')
0 files changed, 0 insertions, 0 deletions