]> err.no Git - linux-2.6/commit
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)
commit2cae367e4854ff055c4f5e8aacd56b0eeec9f6cb
treec28ffa400a5fc78becc9d75cdccb126fc9138ff2
parente87aa773747fb5e4217d716ea22a573c03b6693a
Avoid taking waitqueue lock in dmapool

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>
mm/dmapool.c