Message ID | 20240419-btrfs_unlock-v1-1-c3557976a691@codewreck.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs: add missing mutex_unlock in btrfs_relocate_sys_chunks() | expand |
On Fri 2024-04-19 11:22:48, Dominique Martinet wrote: > From: Dominique Martinet <dominique.martinet@atmark-techno.com> > > The previous patch forgot to unlock in the error path > > Link: https://lore.kernel.org/all/Zh%2fHpAGFqa7YAFuM@duo.ucw.cz > Reported-by: Pavel Machek <pavel@denx.de> > Cc: stable@vger.kernel.org > Fixes: 7411055db5ce ("btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()") > Signed-off-by: Dominique Martinet<dominique.martinet@atmark-techno.com> Reviewed-by: Pavel Machek <pavel@denx.de> Thank you! Best regards, Pavel
On Fri, Apr 19, 2024 at 11:22:48AM +0900, Dominique Martinet wrote: > From: Dominique Martinet <dominique.martinet@atmark-techno.com> > > The previous patch forgot to unlock in the error path > > Link: https://lore.kernel.org/all/Zh%2fHpAGFqa7YAFuM@duo.ucw.cz > Reported-by: Pavel Machek <pavel@denx.de> > Cc: stable@vger.kernel.org > Fixes: 7411055db5ce ("btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()") > Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com> Added to for-next, thanks for catching it.
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index f15591f3e54f..ef6bd2f4251b 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -3455,6 +3455,7 @@ static int btrfs_relocate_sys_chunks(struct btrfs_fs_info *fs_info) * alignment and size). */ ret = -EUCLEAN; + mutex_unlock(&fs_info->reclaim_bgs_lock); goto error; }