patch-2.1.37 linux/include/linux/tqueue.h
Next file: linux/include/linux/tty.h
Previous file: linux/include/linux/sysctl.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon May 12 17:40:37 1997
- Orig file:
v2.1.36/linux/include/linux/tqueue.h
- Orig date:
Thu Mar 27 14:40:11 1997
diff -u --recursive --new-file v2.1.36/linux/include/linux/tqueue.h linux/include/linux/tqueue.h
@@ -83,7 +83,7 @@
extern __inline__ void queue_task(struct tq_struct *bh_pointer,
task_queue *bh_list)
{
- if (!set_bit(0,&bh_pointer->sync)) {
+ if (!test_and_set_bit(0,&bh_pointer->sync)) {
unsigned long flags;
spin_lock_irqsave(&tqueue_lock, flags);
bh_pointer->next = *bh_list;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov