kernel-fxtec-pro1x/fs/gfs2
Bob Peterson f8bc4ff1c4 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:01 +02:00
..
acl.c
acl.h
aops.c
aops.h
bmap.c gfs2: Another gfs2_walk_metadata fix 2020-05-20 08:18:41 +02:00
bmap.h
dentry.c
dir.c
dir.h
export.c
file.c gfs2: fix O_SYNC write handling 2020-02-11 04:34:07 -08:00
gfs2.h
glock.c Revert "gfs2: Don't demote a glock until its revokes are written" 2020-05-27 17:37:42 +02:00
glock.h
glops.c
glops.h
incore.h
inode.c gfs2_atomic_open(): fix O_EXCL|O_CREAT handling on cold dcache 2020-03-18 07:14:21 +01:00
inode.h
Kconfig
lock_dlm.c
log.c gfs2: fix use-after-free on transaction ail lists 2020-06-25 15:33:03 +02:00
log.h
lops.c
lops.h
main.c
Makefile
meta_io.c
meta_io.h
ops_fstype.c gfs2: read-only mounts should grab the sd_freeze_gl glock 2020-07-22 09:32:01 +02:00
quota.c gfs2: move privileged user check to gfs2_quota_lock_check 2020-06-03 08:19:28 +02:00
quota.h gfs2: move privileged user check to gfs2_quota_lock_check 2020-06-03 08:19:28 +02:00
recovery.c
recovery.h
rgrp.c
rgrp.h
super.c
super.h
sys.c
sys.h
trace_gfs2.h
trans.c
trans.h
util.c
util.h
xattr.c
xattr.h