Whamcloud - gitweb
b=20201
o=Oleg Drokin
i=Andrew Perepechko
i=Alexey Lyashkov
Problem is write_sem taking. As it was before the patch, a deadlock was possible
along the lines of:
process 1:
get group lock
process 2:
write syscall
get write_sem
attempt to get write lock, block on group lock
process 1:
write syscall
block on write_sem
tests 3,4 in parallel group lock exercise this scenario.
The patch actually avoids taking write_sem if we do not do any dlm locking as pointless, main
reason
behind it was to avoid cascading timeouts with multiple ldlm locks held (introduced in bug 9332,
comment #139)
--- https://bugzilla.lustre.org/show_bug.cgi?id=20201#c7