patch-2.1.132 linux/kernel/softirq.c
Next file: linux/kernel/sysctl.c
Previous file: linux/kernel/signal.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Mon Dec 21 21:09:15 1998
- Orig file:
v2.1.131/linux/kernel/softirq.c
- Orig date:
Fri Nov 27 13:09:30 1998
diff -u --recursive --new-file v2.1.131/linux/kernel/softirq.c linux/kernel/softirq.c
@@ -6,6 +6,9 @@
* do_bottom_half() runs at normal kernel priority: all interrupts
* enabled. do_bottom_half() is atomic with respect to itself: a
* bottom_half handler need not be re-entrant.
+ *
+ * Fixed a disable_bh()/enable_bh() race (was causing a console lockup)
+ * due bh_mask_count not atomic handling. Copyright (C) 1998 Andrea Arcangeli
*/
#include <linux/mm.h>
@@ -17,7 +20,7 @@
/* intr_count died a painless death... -DaveM */
-int bh_mask_count[32];
+atomic_t bh_mask_count[32];
unsigned long bh_active = 0;
unsigned long bh_mask = 0;
void (*bh_base[32])(void);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov