From f0245aacdf050a70345797eb7e8da74a9c16b3dc Mon Sep 17 00:00:00 2001 From: Robert Love Date: Sun, 2 Jun 2002 20:55:19 -0700 Subject: [PATCH] remove wq_lock_t cruft This patch removes the whole wq_lock_t abstraction, forcing the behavior to be that of a standard spinlock and changes all the wq_lock code in the tree appropriately. Removes lots of code - always a Good Thing to me. New behavior is same as previous behavior (USE_RW_WAIT_QUEUE_SPINLOCK unset). --- kernel/fork.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kernel/fork.c') diff --git a/kernel/fork.c b/kernel/fork.c index 3a778712a98d..a4f5a991e0a5 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -53,9 +53,9 @@ void add_wait_queue(wait_queue_head_t *q, wait_queue_t * wait) unsigned long flags; wait->flags &= ~WQ_FLAG_EXCLUSIVE; - wq_write_lock_irqsave(&q->lock, flags); + spin_lock_irqsave(&q->lock, flags); __add_wait_queue(q, wait); - wq_write_unlock_irqrestore(&q->lock, flags); + spin_unlock_irqrestore(&q->lock, flags); } void add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t * wait) @@ -63,18 +63,18 @@ void add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t * wait) unsigned long flags; wait->flags |= WQ_FLAG_EXCLUSIVE; - wq_write_lock_irqsave(&q->lock, flags); + spin_lock_irqsave(&q->lock, flags); __add_wait_queue_tail(q, wait); - wq_write_unlock_irqrestore(&q->lock, flags); + spin_unlock_irqrestore(&q->lock, flags); } void remove_wait_queue(wait_queue_head_t *q, wait_queue_t * wait) { unsigned long flags; - wq_write_lock_irqsave(&q->lock, flags); + spin_lock_irqsave(&q->lock, flags); __remove_wait_queue(q, wait); - wq_write_unlock_irqrestore(&q->lock, flags); + spin_unlock_irqrestore(&q->lock, flags); } void __init fork_init(unsigned long mempages) -- cgit v1.2.3