Skip to contentSkip to conversation

wait.h: fix spin_lock_irqrestore typo

PATCH In review Vinay K Nallamothu 2 participants 2 messages Aug 23, 2003 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wait.h: fix spin_lock_irqrestore typo

Hi Linus,

A small patch to fix a spin_lock typo in the macro add_wait_queue_cond

Vinay

include/linux/wait.h +1 -1
@@ -232,7 +232,7 @@
 			_raced = 1;				\
 			__remove_wait_queue((q), (wait));	\
 		}						\
-		spin_lock_irqrestore(&(q)->lock, flags);	\
+		spin_unlock_irqrestore(&(q)->lock, flags);	\
 		_raced;						\
 	})
 
#1 lore raw
Quoted 5 lines · Vinay K Nallamothu

A small patch to fix a spin_lock typo in the macro add_wait_queue_cond

Vinay

Quoted 10 lines

--- linux-2.6.0-test4/include/linux/wait.h 2003-07-15 17:22:56.000000000 +0530
+++ linux-2.6.0-test4-nvk/include/linux/wait.h 2003-08-23 19:08:36.000000000 +0530
@@ -232,7 +232,7 @@
_raced = 1; \
__remove_wait_queue((q), (wait)); \
} \
- spin_lock_irqrestore(&(q)->lock, flags); \
+ spin_unlock_irqrestore(&(q)->lock, flags); \
_raced; \
})

Well that's obviously had a lot of testing.

It has no callers; I'll just kill it.