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: NMatthew Wilcox <willy@linux.intel.com> Acked-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录