]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gfs2: move msleep to sleepable context
authorAlexander Aring <aahringo@redhat.com>
Mon, 31 Mar 2025 23:03:24 +0000 (19:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:11:12 +0000 (11:11 +0100)
commitf2cc87bf3e3a68b86f8370332adfd99d1d2f0bf2
treedc26f872fc9d3abaee6e430da69861c96f2c99cb
parentea3c81acb041a41fe61b0c20b24d3760037b5432
gfs2: move msleep to sleepable context

commit ac5ee087d31ed93b6e45d2968a66828c6f621d8c upstream.

This patch moves the msleep_interruptible() out of the non-sleepable
context by moving the ls->ls_recover_spin spinlock around so
msleep_interruptible() will be called in a sleepable context.

Cc: stable@vger.kernel.org
Fixes: 4a7727725dc7 ("GFS2: Fix recovery issues for spectators")
Suggested-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/gfs2/lock_dlm.c