]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dlm: handle invalid lockspace member remove
authorAlexander Aring <aahringo@redhat.com>
Thu, 14 Aug 2025 15:22:11 +0000 (11:22 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 14 Aug 2025 20:16:04 +0000 (15:16 -0500)
commit452d90def2dce8513d75981a4dc48e94e65ff54b
tree42c929d8ad95ff21dbb0a413159aacfd004bfc52
parent6f4f4ca5caf73de5e86329547d4527b3e0c08488
dlm: handle invalid lockspace member remove

Since commit de7b4869b4ecf ("dlm: add new configfs entry release_recover
for lockspace members") we are moving lockspace members into a gone list
before removing them to get additional removing attributes from
configfs. There is still a very unlikely possibility when
find_config_node() returns NULL, then for some reason the node wasn't
marked as gone but it was removed. We will just handle this case and drop
an error to observe if this case can ever happen.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/gfs2/aJ2Ssuh8xlsTutrA@stanley.mountain/T/#u
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/member.c