From: Chao Yu Date: Fri, 28 Oct 2022 09:30:26 +0000 (+0800) Subject: f2fs: fix to destroy sbi->post_read_wq in error path of f2fs_fill_super() X-Git-Tag: v6.0.16~486 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9e3d2a890fddbd78867dd1f2c87e47e233f59cb;p=thirdparty%2Fkernel%2Fstable.git f2fs: fix to destroy sbi->post_read_wq in error path of f2fs_fill_super() [ Upstream commit 7b02b2201893a71b881026cf574902019ab00db5 ] In error path of f2fs_fill_super(), this patch fixes to call f2fs_destroy_post_read_wq() once if we fail in f2fs_start_ckpt_thread(). Fixes: 261eeb9c1585 ("f2fs: introduce checkpoint_merge mount option") Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 5415c06d8246f..1187f29dc8e0a 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -4460,9 +4460,9 @@ free_nm: f2fs_destroy_node_manager(sbi); free_sm: f2fs_destroy_segment_manager(sbi); - f2fs_destroy_post_read_wq(sbi); stop_ckpt_thread: f2fs_stop_ckpt_thread(sbi); + f2fs_destroy_post_read_wq(sbi); free_devices: destroy_device_list(sbi); kvfree(sbi->ckpt);