diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-03-04 05:59:09 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-03-04 05:59:09 +0000 |
commit | 8263f1d70330d36312ff1565506cacf230d3870d (patch) | |
tree | ae17d71aee6d76fa0154002d9108f595ba1064c8 /sys | |
parent | 49edfda2bb632d2b6711a06fcf917fe70dfb09c5 (diff) |
Fix stupid logic bug in rw_cas_m88k(), makes NFS much happier on SMP kernels.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/m88k/m88k/m88k_machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/m88k_machdep.c b/sys/arch/m88k/m88k/m88k_machdep.c index 5e3da058053..f592cead357 100644 --- a/sys/arch/m88k/m88k/m88k_machdep.c +++ b/sys/arch/m88k/m88k/m88k_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m88k_machdep.c,v 1.46 2009/02/20 20:40:01 miod Exp $ */ +/* $OpenBSD: m88k_machdep.c,v 1.47 2009/03/04 05:59:08 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -607,7 +607,8 @@ rw_cas_m88k(volatile unsigned long *p, unsigned long o, unsigned long n) if (*p != o) rc = 1; - *p = n; + else + *p = n; __cpu_simple_unlock(&rw_cas_spinlock); |