]> git.neil.brown.name Git - history.git/commit
[PATCH] slab: Remove cache_chain_lock
authorAndrew Morton <akpm@digeo.com>
Wed, 30 Oct 2002 07:25:23 +0000 (23:25 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Wed, 30 Oct 2002 07:25:23 +0000 (23:25 -0800)
commit716b7ab11f51f5b1f41827acfd1874844adb181b
treed3c585b5d8e385a2be19b4ba1d8b863120966027
parentbf19f75ecae34747768f6dafd857520348895380
[PATCH] slab: Remove cache_chain_lock

Manfred added a new lock to protect the global list of slab caches.  We
already have a semaphore from those but he needs locking from timer
context.

So here we remove that lock and just do a down_trylock() on the
existing semaphore.  If that fails give up - we'll try again next timer
tick.
mm/slab.c