Bart Van Assche a97f4a66d8 dlm: Avoid that dlm_release_lockspace() incorrectly returns -EBUSY
When dlm_release_lockspace(ls, 1) is invoked on a busy system
immediately after the last dlm_unlock() AST has finished it can occur
that lkb_idr_is_local() is invoked for the unlocked LKB since removal
from ls_lkbidr only occurs after the AST has returned. If that happens
dlm_release_lockspace(ls, 1) will return -EBUSY instead of releasing
the lockspace. Fix this race condition by changing lkb_idr_is_local()
such that it only returns true for LKB's that have not yet been
unlocked.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: David Teigland <teigland@redhat.com>
2013-10-16 10:32:42 -05:00
..
2011-07-15 12:30:43 -05:00
2012-07-16 14:16:19 -05:00
2012-07-16 14:16:19 -05:00
2012-11-01 15:27:24 -05:00
2013-06-26 11:38:02 -05:00
2012-07-16 14:16:19 -05:00
2008-04-21 11:22:28 -05:00
2012-08-08 11:33:49 -05:00
2012-01-04 08:56:31 -06:00
2011-07-12 16:02:09 -05:00
2008-12-23 10:15:40 -06:00
2013-04-08 12:03:15 -05:00
2012-08-08 11:33:49 -05:00
2012-07-16 14:16:19 -05:00
2013-02-27 19:10:19 -08:00
2012-08-08 11:33:49 -05:00
2012-08-08 11:33:49 -05:00
2012-05-02 14:15:27 -05:00
2013-08-12 15:22:43 -05:00
2011-03-10 10:40:00 -06:00
2008-02-04 01:23:43 -06:00
2006-01-18 09:30:29 +00:00