kernel_samsung_a53x/fs/gfs2
Andreas Gruenbacher 1088cda902 gfs2: Fix "ignore unlock failures after withdraw"
[ Upstream commit 5d9231111966b6c5a65016d58dcbeab91055bc91 ]

Commit 3e11e53041502 tries to suppress dlm_lock() lock conversion errors
that occur when the lockspace has already been released.

It does that by setting and checking the SDF_SKIP_DLM_UNLOCK flag.  This
conflicts with the intended meaning of the SDF_SKIP_DLM_UNLOCK flag, so
check whether the lockspace is still allocated instead.

(Given the current DLM API, checking for this kind of error after the
fact seems easier that than to make sure that the lockspace is still
allocated before calling dlm_lock().  Changing the DLM API so that users
maintain the lockspace references themselves would be an option.)

Fixes: 3e11e53041502 ("GFS2: ignore unlock failures after withdraw")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:26:54 +01:00
..
acl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bmap.c gfs2: Fix invalid metadata access in punch_hole 2024-11-19 11:32:43 +01:00
bmap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dentry.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dir.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dir.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
export.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
file.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gfs2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
glock.c gfs2: Fix "ignore unlock failures after withdraw" 2024-11-19 12:26:54 +01:00
glock.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
glops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
glops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
incore.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inode.c gfs2: Silence "suspicious RCU usage in gfs2_permission" warning 2024-11-18 11:43:19 +01:00
inode.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lock_dlm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
log.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
log.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meta_io.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meta_io.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ops_fstype.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
quota.c gfs2: ignore negated quota changes 2024-11-18 11:43:15 +01:00
quota.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
recovery.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
recovery.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rgrp.c gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump 2024-11-18 12:12:27 +01:00
rgrp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
super.c gfs2: fix an oops in gfs2_permission 2024-11-18 11:43:15 +01:00
super.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sys.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sys.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace_gfs2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trans.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trans.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
util.c gfs2: Fix "ignore unlock failures after withdraw" 2024-11-19 12:26:54 +01:00
util.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xattr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xattr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00