]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Don't use a try lock when promoting to a higher mode
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 5 May 2011 11:36:38 +0000 (12:36 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 5 May 2011 11:36:38 +0000 (12:36 +0100)
commit3325936f37ab8cbf40a69cb432e294bf1535346c
tree857beb3294af78b926e9e5d95ed2d97b0c9c909b
parentfe95878392d75018c5961590e654e6ef6d593603
GFS2: Don't use a try lock when promoting to a higher mode

Previously we marked all locks being promoted to a higher mode
with the try flag to avoid any potential deadlocks issues. The
DLM is able to detect these and report them in way that GFS2 can
deal with them correctly. So we can just request the required mode
and wait for a response without needing to perform this check.

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