From: Rolf Eike Beer Date: Thu, 13 Jan 2011 23:47:24 +0000 (-0800) Subject: mm/dmapool.c: take lock only once in dma_pool_free() X-Git-Tag: v2.6.38-rc1~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84bc227d7fde049a568cd58a5610613feedc0dff;p=pandora-kernel.git mm/dmapool.c: take lock only once in dma_pool_free() dma_pool_free() scans for the page to free in the pool list holding the pool lock. Then it releases the lock basically to acquire it immediately again. Modify the code to only take the lock once. This will do some additional loops and computations with the lock held in if memory debugging is activated. If it is not activated the only new operations with this lock is one if and one substraction. Signed-off-by: Rolf Eike Beer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed