]> git.proxmox.com Git - mirror_spl-debian.git/commit
splat linux:shrinker: Fix race condition
authorSteven Johnson <sjohnson@sakuraindustries.com>
Mon, 3 Dec 2012 08:16:17 +0000 (16:16 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 12 Dec 2012 17:04:11 +0000 (09:04 -0800)
commitca072ee70f7beccd33c0363dc7951a10492b4782
tree7674d4dba669cf287aa3d4ab06f4eb7a51d1f595
parent576ec6aac4a4a15754892824643cedb30d652c39
splat linux:shrinker: Fix race condition

Ensure the test thread blocks until the shrinker has completed its
work.  This is done by putting the test thread to sleep and waking
it each time the shrinker callback runs.  Once the shrinker size
drops to zero or we time out the test is allowed to proceed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #96
Closes #125
Closes #182
module/splat/splat-linux.c