diff options
author | Bob Peterson <rpeterso@redhat.com> | 2012-03-05 15:20:59 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2012-03-05 16:06:56 +0100 |
commit | 6aad1c3d3eba3db38b3a1200e2b02ff3af501c5a (patch) | |
tree | 08643be75568eac3745f9fddce4f6fef27a6de70 /drivers/pnp/interface.c | |
parent | GFS2: Unlock rindex mutex on glock error (diff) | |
download | linux-6aad1c3d3eba3db38b3a1200e2b02ff3af501c5a.tar.xz linux-6aad1c3d3eba3db38b3a1200e2b02ff3af501c5a.zip |
GFS2: Eliminate sd_rindex_mutex
Over time, we've slowly eliminated the use of sd_rindex_mutex.
Up to this point, it was only used in two places: function
gfs2_ri_total (which totals the file system size by reading
and parsing the rindex file) and function gfs2_rindex_update
which updates the rgrps in memory. Both of these functions have
the rindex glock to protect them, so the rindex is unnecessary.
Since gfs2_grow writes to the rindex via the meta_fs, the mutex
is in the wrong order according to the normal rules. This patch
eliminates the mutex entirely to avoid the problem.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'drivers/pnp/interface.c')
0 files changed, 0 insertions, 0 deletions