This is a note to let you know that I've just added the patch titled btrfs: add missing mutex_unlock in btrfs_relocate_sys_chunks() to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: btrfs-add-missing-mutex_unlock-in-btrfs_relocate_sys_chunks.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 9af503d91298c3f2945e73703f0e00995be08c30 Mon Sep 17 00:00:00 2001 From: Dominique Martinet <dominique.martinet@xxxxxxxxxxxxxxxxx> Date: Fri, 19 Apr 2024 11:22:48 +0900 Subject: btrfs: add missing mutex_unlock in btrfs_relocate_sys_chunks() From: Dominique Martinet <dominique.martinet@xxxxxxxxxxxxxxxxx> commit 9af503d91298c3f2945e73703f0e00995be08c30 upstream. The previous patch that replaced BUG_ON by error handling forgot to unlock the mutex in the error path. Link: https://lore.kernel.org/all/Zh%2fHpAGFqa7YAFuM@xxxxxxxxxx Reported-by: Pavel Machek <pavel@xxxxxxx> Fixes: 7411055db5ce ("btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()") CC: stable@xxxxxxxxxxxxxxx Reviewed-by: Pavel Machek <pavel@xxxxxxx> Signed-off-by: Dominique Martinet <dominique.martinet@xxxxxxxxxxxxxxxxx> Reviewed-by: David Sterba <dsterba@xxxxxxxx> Signed-off-by: David Sterba <dsterba@xxxxxxxx> Signed-off-by: Dominique Martinet <dominique.martinet@xxxxxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/btrfs/volumes.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -2957,6 +2957,7 @@ again: * alignment and size). */ ret = -EUCLEAN; + mutex_unlock(&fs_info->delete_unused_bgs_mutex); goto error; } Patches currently in stable-queue which might be from dominique.martinet@xxxxxxxxxxxxxxxxx are queue-4.19/btrfs-add-missing-mutex_unlock-in-btrfs_relocate_sys_chunks.patch