Bob Peterson 27874115b0 gfs2: read-only mounts should grab the sd_freeze_gl glock
[ Upstream commit b780cc615ba4795a7ef0e93b19424828a5ad456a ]

Before this patch, only read-write mounts would grab the freeze
glock in read-only mode, as part of gfs2_make_fs_rw. So the freeze
glock was never initialized. That meant requests to freeze, which
request the glock in EX, were granted without any state transition.
That meant you could mount a gfs2 file system, which is currently
frozen on a different cluster node, in read-only mode.

This patch makes read-only mounts lock the freeze glock in SH mode,
which will block for file systems that are frozen on another node.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-07-22 09:32:53 +02:00
..
2019-07-03 14:45:18 +02:00
2020-05-20 08:20:17 +02:00
2020-02-11 04:35:35 -08:00
2019-09-04 20:22:17 +02:00
2019-09-03 09:42:41 +02:00
2020-06-17 16:40:21 +02:00
2019-06-08 12:52:42 -07:00
2019-09-03 09:42:41 +02:00
2019-09-18 22:47:05 -04:00
2019-09-03 09:42:41 +02:00