]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/gfs2/rgrp.c
GFS2: Add non-try locks back to get_local_rgrp
authorBob Peterson <rpeterso@redhat.com>
Mon, 14 Nov 2011 15:45:40 +0000 (10:45 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 15 Nov 2011 15:24:22 +0000 (15:24 +0000)
commitc688b8b334d20acbc79b0383af2816ecf7365741
tree88d6db882149dcb05af56d8739af928360739bac
parent79c4c379c8f16a12c28ea2084db5138e33d17ebd
GFS2: Add non-try locks back to get_local_rgrp

This upstream patch had what I believe is an unintended consequence:

http://git.kernel.org/?p=linux/kernel/git/steve/gfs2-3.0-nmw.git;a=commitdiff;h=beca42486749c1538a5ed58fe9dcc9f26d428c93

The patch changed function get_local_rgrp such that it ONLY
used TRY locks for RGRP searches. Prior to that patch, the code
used TRY locks during the first loop, and if that was unsuccessful,
it used normal blocking locks on subsequent searches. This patch
changes it back to the old way.

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