aboutsummaryrefslogtreecommitdiff
path: root/fs/ioprio.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2013-10-16 14:20:25 +0200
committerJiri Slaby <jslaby@suse.cz>2014-05-05 15:21:59 +0200
commit7aa1bde8f6143b2db33e6567a8c3a4debaa246f4 (patch)
tree6ed593c0b6b2e7b207c78c690fe972c8d0a66281 /fs/ioprio.c
parent3756888c2a2da9c7291d39cacd1184171111b49d (diff)
dlm: Avoid that dlm_release_lockspace() incorrectly returns -EBUSY
commit a97f4a66d8ee4faf0f31cc4ad3f4aa0baef23fc7 upstream. 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> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'fs/ioprio.c')
0 files changed, 0 insertions, 0 deletions