Skip to content

Commit 62fdb65

Browse files
z00467499chucklever
authored andcommitted
nfsd: Unregister the cld notifier when laundry_wq create failed
If laundry_wq create failed, the cld notifier should be unregistered. Signed-off-by: Zhang Xiaoxu <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 28df098 commit 62fdb65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/nfsd/nfsctl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,12 +1543,14 @@ static int __init init_nfsd(void)
15431543
goto out_free_filesystem;
15441544
retval = register_cld_notifier();
15451545
if (retval)
1546-
goto out_free_all;
1546+
goto out_free_subsys;
15471547
retval = nfsd4_create_laundry_wq();
15481548
if (retval)
15491549
goto out_free_all;
15501550
return 0;
15511551
out_free_all:
1552+
unregister_cld_notifier();
1553+
out_free_subsys:
15521554
unregister_pernet_subsys(&nfsd_net_ops);
15531555
out_free_filesystem:
15541556
unregister_filesystem(&nfsd_fs_type);

0 commit comments

Comments
 (0)