aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2015-10-29 11:58:09 -0400
committerBob Peterson <rpeterso@redhat.com>2015-10-29 13:57:48 -0400
commitf3dd1649122b9e73f869e5304d5fa8554e128b7a (patch)
treed6e75c45ea5250f7dc483c51b08cd1b78f40fa1d /Documentation/filesystems
parent491e94f790982bec5a1334dd3db2708de3724bdf (diff)
gfs2: Remove gl_spin define
Commit e66cf161 replaced the gl_spin spinlock in struct gfs2_glock with a gl_lockref lockref and defined gl_spin as gl_lockref.lock (the spinlock in gl_lockref). Remove that define to make the references to gl_lockref.lock more obvious. Signed-off-by: Andreas Gruenbacher <andreas.gruenbacher@gmail.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r--Documentation/filesystems/gfs2-glocks.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/filesystems/gfs2-glocks.txt b/Documentation/filesystems/gfs2-glocks.txt
index fcc79957be63..1fb12f9dfe48 100644
--- a/Documentation/filesystems/gfs2-glocks.txt
+++ b/Documentation/filesystems/gfs2-glocks.txt
@@ -5,7 +5,7 @@ This documents the basic principles of the glock state machine
5internals. Each glock (struct gfs2_glock in fs/gfs2/incore.h) 5internals. Each glock (struct gfs2_glock in fs/gfs2/incore.h)
6has two main (internal) locks: 6has two main (internal) locks:
7 7
8 1. A spinlock (gl_spin) which protects the internal state such 8 1. A spinlock (gl_lockref.lock) which protects the internal state such
9 as gl_state, gl_target and the list of holders (gl_holders) 9 as gl_state, gl_target and the list of holders (gl_holders)
10 2. A non-blocking bit lock, GLF_LOCK, which is used to prevent other 10 2. A non-blocking bit lock, GLF_LOCK, which is used to prevent other
11 threads from making calls to the DLM, etc. at the same time. If a 11 threads from making calls to the DLM, etc. at the same time. If a
@@ -82,8 +82,8 @@ rather than via the glock.
82 82
83Locking rules for glock operations: 83Locking rules for glock operations:
84 84
85Operation | GLF_LOCK bit lock held | gl_spin spinlock held 85Operation | GLF_LOCK bit lock held | gl_lockref.lock spinlock held
86----------------------------------------------------------------- 86-------------------------------------------------------------------------
87go_xmote_th | Yes | No 87go_xmote_th | Yes | No
88go_xmote_bh | Yes | No 88go_xmote_bh | Yes | No
89go_inval | Yes | No 89go_inval | Yes | No