Whamcloud - gitweb
b=7017
authoralex <alex>
Sat, 23 Jul 2005 20:55:29 +0000 (20:55 +0000)
committeralex <alex>
Sat, 23 Jul 2005 20:55:29 +0000 (20:55 +0000)
commit9068f704b02913bd17bdff6d93b59a1f77867d86
treee4ea0f0ad52d1b814c88a4102a32e70af1f9ed38
parentb2bd35d3ac622d8f9f430545343ed84111eabdb8
b=7017

 - atomic_dec_and_test() with subsequent spin_lock() against the list
   is racy. atomic_dec_and_lock() must be used. otherwise other cpu
   can hit the race window, increment refcount, drop it again and we
   get to the situation when both cpus are freeing the structure
lustre/ldlm/ldlm_resource.c