]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Only wait for demote when last holder is dequeued
authorBob Peterson <rpeterso@redhat.com>
Fri, 20 Jun 2014 13:36:41 +0000 (09:36 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 18 Jul 2014 10:12:14 +0000 (11:12 +0100)
commit557a9b875d685a2a68aaca10980f0cc7ea31dd4a
tree7339b1d87039d77346d9a4ec3fb2be3316c6be81
parent8256b8cbf8f487aaf8434da170da4611c0472834
GFS2: Only wait for demote when last holder is dequeued

Function gfs2_glock_dq_wait is supposed to dequeue a glock and then
wait for the lock to be demoted. The problem is, if this is a shared
lock, its demote will depend on the other holders, which means you
might end up waiting forever because the other process is blocked.
This problem is especially apparent when dealing with nested flocks.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glock.c