gfs2: Allow node-wide exclusive glock sharing
authorBob Peterson <rpeterso@redhat.com>
Wed, 18 Apr 2018 20:58:19 +0000 (13:58 -0700)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 17 Feb 2021 18:30:28 +0000 (19:30 +0100)
commit06e908cd9ead1f215cc30132aac5ce132a352fbe
treed29700f1ed155b18a0b3bd0af553f48fbc1a35af
parent9e514605c77451745ea9fca5a26fc3153893686a
gfs2: Allow node-wide exclusive glock sharing

Introduce a new LM_FLAG_NODE_SCOPE glock holder flag: when taking a
glock in LM_ST_EXCLUSIVE (EX) mode and with the LM_FLAG_NODE_SCOPE flag
set, the exclusive lock is shared among all local processes who are
holding the glock in EX mode and have the LM_FLAG_NODE_SCOPE flag set.
From the point of view of other nodes, the lock is still held
exclusively.

A future patch will start using this flag to improve performance with
rgrp sharing.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c
fs/gfs2/glock.h