Commit 62fdb65e authored by Zhang Xiaoxu's avatar Zhang Xiaoxu Committed by Chuck Lever
Browse files

nfsd: Unregister the cld notifier when laundry_wq create failed



If laundry_wq create failed, the cld notifier should be unregistered.

Signed-off-by: default avatarZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 28df0988
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1543,12 +1543,14 @@ static int __init init_nfsd(void)
		goto out_free_filesystem;
	retval = register_cld_notifier();
	if (retval)
		goto out_free_all;
		goto out_free_subsys;
	retval = nfsd4_create_laundry_wq();
	if (retval)
		goto out_free_all;
	return 0;
out_free_all:
	unregister_cld_notifier();
out_free_subsys:
	unregister_pernet_subsys(&nfsd_net_ops);
out_free_filesystem:
	unregister_filesystem(&nfsd_fs_type);