Whamcloud - gitweb
b=21519 fix race between ldlm_pools_thread and ldlm_space_free
authorEric Mei <Eric.Mei@Sun.COM>
Tue, 5 Jan 2010 17:28:57 +0000 (10:28 -0700)
committerRobert Read <rread@sun.com>
Tue, 5 Jan 2010 19:20:44 +0000 (11:20 -0800)
commitfbe4b504f24870fd800b103293f1cfc7192448b4
treee614ec854b20ff023c717cd3a44e62df46893710
parentc5e8e49281ac04feca9ddbc13dc87acb5b20e57d
b=21519 fix race between ldlm_pools_thread and ldlm_space_free

After ldlm_space_free dropped the refcount of a namespace to 0, it
may start to cleanup data structures in the namespace, while the
ldlm_pools_thread can still pick up the freeing namespace. This patch
is to instruct ldlm_pools_thread to skip namespace which is being
freed.

i=oleg
i=wangdi
lustre/ldlm/ldlm_pool.c