VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Andrew Price <anprice@redhat.com> 2021-03-15 12:24:00 +0000 committer: Andreas Gruenbacher <agruenba@redhat.com> 2021-03-15 15:32:42 +0100 commit: 62dd0f98a0e5668424270b47a0c2e973795faba7 parent: b77b5fdd052e7ee61b35164abb10e8433d3160e8
Commit Summary:
gfs2: Flag a withdraw if init_threads() fails
Diffstat:
1 file changed, 3 insertions, 1 deletion
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index 97076d3f562f..9e91c9d92bd6 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -162,8 +162,10 @@ int gfs2_make_fs_rw(struct gfs2_sbd *sdp)
 	int error;
 
 	error = init_threads(sdp);
-	if (error)
+	if (error) {
+		gfs2_withdraw_delayed(sdp);
 		return error;
+	}
 
 	j_gl->gl_ops->go_inval(j_gl, DIO_METADATA);
 	if (gfs2_withdrawn(sdp)) {