nfsd: Log client tracking type log message as info instead of warning
[ Upstream commit f988a7b71d1e66e63f79cd59c763875347943a7a ] `printk()`, by default, uses the log level warning, which leaves the user reading NFSD: Using UMH upcall client tracking operations. wondering what to do about it (`dmesg --level=warn`). Several client tracking methods are tried, and expected to fail. That’s why a message is printed only on success. It might be interesting for users to know the chosen method, so use info-level instead of debug-level. Cc: linux-nfs@vger.kernel.org Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
531e8745c3
commit
b606de1468
1 changed files with 4 additions and 4 deletions
|
@ -626,7 +626,7 @@ nfsd4_legacy_tracking_init(struct net *net)
|
||||||
status = nfsd4_load_reboot_recovery_data(net);
|
status = nfsd4_load_reboot_recovery_data(net);
|
||||||
if (status)
|
if (status)
|
||||||
goto err;
|
goto err;
|
||||||
printk("NFSD: Using legacy client tracking operations.\n");
|
pr_info("NFSD: Using legacy client tracking operations.\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
@ -1030,7 +1030,7 @@ nfsd4_init_cld_pipe(struct net *net)
|
||||||
|
|
||||||
status = __nfsd4_init_cld_pipe(net);
|
status = __nfsd4_init_cld_pipe(net);
|
||||||
if (!status)
|
if (!status)
|
||||||
printk("NFSD: Using old nfsdcld client tracking operations.\n");
|
pr_info("NFSD: Using old nfsdcld client tracking operations.\n");
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1607,7 +1607,7 @@ nfsd4_cld_tracking_init(struct net *net)
|
||||||
nfs4_release_reclaim(nn);
|
nfs4_release_reclaim(nn);
|
||||||
goto err_remove;
|
goto err_remove;
|
||||||
} else
|
} else
|
||||||
printk("NFSD: Using nfsdcld client tracking operations.\n");
|
pr_info("NFSD: Using nfsdcld client tracking operations.\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err_remove:
|
err_remove:
|
||||||
|
@ -1866,7 +1866,7 @@ nfsd4_umh_cltrack_init(struct net *net)
|
||||||
ret = nfsd4_umh_cltrack_upcall("init", NULL, grace_start, NULL);
|
ret = nfsd4_umh_cltrack_upcall("init", NULL, grace_start, NULL);
|
||||||
kfree(grace_start);
|
kfree(grace_start);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
printk("NFSD: Using UMH upcall client tracking operations.\n");
|
pr_info("NFSD: Using UMH upcall client tracking operations.\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue