WSL2-Linux-Kernel/fs/gfs2
Andreas Gruenbacher d09a8f2d30 gfs2: Fix "ignore unlock failures after withdraw"
[ Upstream commit 5d9231111966b6c5a65016d58dcbeab91055bc91 ]

Commit 3e11e53041 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: 3e11e53041 ("GFS2: ignore unlock failures after withdraw")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-16 13:39:20 +02:00
..
Kconfig
Makefile
acl.c
acl.h
aops.c gfs2: low-memory forced flush fixes 2023-09-19 12:22:56 +02:00
aops.h
bmap.c gfs2: Fix invalid metadata access in punch_hole 2024-05-17 11:50:52 +02:00
bmap.h
dentry.c
dir.c
dir.h
export.c
file.c
gfs2.h
glock.c gfs2: Fix "ignore unlock failures after withdraw" 2024-06-16 13:39:20 +02:00
glock.h
glops.c gfs2: Don't forget to complete delayed withdraw 2024-06-16 13:39:20 +02:00
glops.h
incore.h
inode.c gfs2: Silence "suspicious RCU usage in gfs2_permission" warning 2023-11-28 16:56:22 +00:00
inode.h
lock_dlm.c
log.c gfs2: low-memory forced flush fixes 2023-09-19 12:22:56 +02:00
log.h
lops.c
lops.h
main.c
meta_io.c
meta_io.h
ops_fstype.c
quota.c gfs2: ignore negated quota changes 2023-11-28 16:56:20 +00:00
quota.h
recovery.c
recovery.h
rgrp.c gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump 2024-01-25 14:52:35 -08:00
rgrp.h
super.c gfs2: fix an oops in gfs2_permission 2023-11-28 16:56:20 +00:00
super.h
sys.c
sys.h
trace_gfs2.h
trans.c
trans.h
util.c gfs2: Fix "ignore unlock failures after withdraw" 2024-06-16 13:39:20 +02:00
util.h
xattr.c
xattr.h