diff options
author | Rolf Eike Beer <eike-kernel@sf-tec.de> | 2011-01-13 15:47:24 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 17:32:48 -0800 |
commit | 84bc227d7fde049a568cd58a5610613feedc0dff (patch) | |
tree | 89957d8ef4dba3fe8d609bd90619f7bf6f15ec0f /net | |
parent | 43506fad21ca3d8dc59e768ff458f7c5e5c01086 (diff) | |
download | linux-84bc227d7fde049a568cd58a5610613feedc0dff.tar.gz linux-84bc227d7fde049a568cd58a5610613feedc0dff.tar.bz2 linux-84bc227d7fde049a568cd58a5610613feedc0dff.zip |
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 <eike-kernel@sf-tec.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions