Avoid taking waitqueue lock in dmapool
authorMatthew Wilcox <matthew@wil.cx>
Mon, 3 Dec 2007 17:09:33 +0000 (12:09 -0500)
committerMatthew Wilcox <matthew@wil.cx>
Tue, 4 Dec 2007 15:39:56 +0000 (10:39 -0500)
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 <willy@linux.intel.com>
Acked-by: David S. Miller <davem@davemloft.net>

No differences found