linux-stable/fs/gfs2
Andreas Gruenbacher dd52e3bc4f gfs2: Fix "ignore unlock failures after withdraw"
[ Upstream commit 5d92311119 ]

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:32:05 +02:00
..
Kconfig
Makefile
acl.c
acl.h
aops.c gfs2: Always check inode size of inline inodes 2023-04-05 11:23:52 +02:00
aops.h
bmap.c gfs2: Fix invalid metadata access in punch_hole 2024-05-17 11:48:02 +02:00
bmap.h
dentry.c
dir.c
dir.h
export.c
file.c gfs2: Disable page faults during lockless buffered reads 2022-05-25 09:17:53 +02:00
gfs2.h
glock.c gfs2: Fix "ignore unlock failures after withdraw" 2024-06-16 13:32:05 +02:00
glock.h
glops.c gfs2: Fix inode height consistency check 2023-05-30 12:57:49 +01:00
glops.h
incore.h
inode.c gfs2: Silence "suspicious RCU usage in gfs2_permission" warning 2023-11-28 16:54:53 +00:00
inode.h
lock_dlm.c gfs2: Don't call dlm after protocol is unmounted 2021-09-18 13:40:30 +02:00
log.c treewide: Change list_sort to use const pointers 2021-09-30 10:11:04 +02:00
log.h
lops.c treewide: Change list_sort to use const pointers 2021-09-30 10:11:04 +02:00
lops.h
main.c
meta_io.c
meta_io.h
ops_fstype.c gfs2: Switch from strlcpy to strscpy 2022-11-25 17:45:56 +01:00
quota.c gfs2: ignore negated quota changes 2023-11-28 16:54:52 +00:00
quota.h
recovery.c
recovery.h
rgrp.c gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump 2024-01-25 14:37:42 -08:00
rgrp.h gfs2: gfs2_setattr_size error path fix 2022-04-13 21:00:54 +02:00
super.c gfs2: fix an oops in gfs2_permission 2023-11-28 16:54:52 +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:32:05 +02:00
util.h
xattr.c
xattr.h