Re: [PATCH 1/4] Avoid taking waitqueue lock in dmapool

2007-09-26 Thread David Miller
From: Matthew Wilcox <[EMAIL PROTECTED]> Date: Wed, 26 Sep 2007 15:01:16 -0400 > With one trivial change (taking the lock slightly earlier on wakeup > from schedule), all uses of the waitq are under the pool lock, so we > can use the locked (or __) versions of the wait queue functions, and >

[PATCH 1/4] Avoid taking waitqueue lock in dmapool

2007-09-26 Thread Matthew Wilcox
With one trivial change (taking the lock slightly earlier on wakeup from schedule), all uses of the waitq are under the pool lock, so we can use the locked (or __) versions of the wait queue functions, and avoid the extra spinlock. Signed-off-by: Matthew Wilcox <[EMAIL PROTECTED]> ---

[PATCH 1/4] Avoid taking waitqueue lock in dmapool

2007-09-26 Thread Matthew Wilcox
With one trivial change (taking the lock slightly earlier on wakeup from schedule), all uses of the waitq are under the pool lock, so we can use the locked (or __) versions of the wait queue functions, and avoid the extra spinlock. Signed-off-by: Matthew Wilcox [EMAIL PROTECTED] --- mm/dmapool.c

Re: [PATCH 1/4] Avoid taking waitqueue lock in dmapool

2007-09-26 Thread David Miller
From: Matthew Wilcox [EMAIL PROTECTED] Date: Wed, 26 Sep 2007 15:01:16 -0400 With one trivial change (taking the lock slightly earlier on wakeup from schedule), all uses of the waitq are under the pool lock, so we can use the locked (or __) versions of the wait queue functions, and avoid the