]> 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:05:23 +0000 (11:05 +0100)
commit5a16ebe0050e839a65ef16b7b6196dc82fdb62e4
treeed705a130a929d6aa09e91e17262f9a11869964e
parente4da95e1246fcba9cfa55657e0c46965963dbc19
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