diff options
Diffstat (limited to 'include/linux/tqueue.h')
-rw-r--r-- | include/linux/tqueue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/tqueue.h b/include/linux/tqueue.h index acebad9f2..de88d20d1 100644 --- a/include/linux/tqueue.h +++ b/include/linux/tqueue.h @@ -83,7 +83,7 @@ extern spinlock_t tqueue_lock; 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; |