mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
dm-mpath: don't print the "loaded" message if registering fails
[ Upstream commit 6e11952a6abc4641dc8ae63f01b318b31b44e8db ] If dm_register_path_selector, don't print the "version X loaded" message. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cf4a40ad21
commit
f4133dc2b9
@@ -541,8 +541,10 @@ static int __init dm_hst_init(void)
|
||||
{
|
||||
int r = dm_register_path_selector(&hst_ps);
|
||||
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
DMERR("register failed %d", r);
|
||||
return r;
|
||||
}
|
||||
|
||||
DMINFO("version " HST_VERSION " loaded");
|
||||
|
||||
|
||||
@@ -260,8 +260,10 @@ static int __init dm_ql_init(void)
|
||||
{
|
||||
int r = dm_register_path_selector(&ql_ps);
|
||||
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
DMERR("register failed %d", r);
|
||||
return r;
|
||||
}
|
||||
|
||||
DMINFO("version " QL_VERSION " loaded");
|
||||
|
||||
|
||||
@@ -220,8 +220,10 @@ static int __init dm_rr_init(void)
|
||||
{
|
||||
int r = dm_register_path_selector(&rr_ps);
|
||||
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
DMERR("register failed %d", r);
|
||||
return r;
|
||||
}
|
||||
|
||||
DMINFO("version " RR_VERSION " loaded");
|
||||
|
||||
|
||||
@@ -341,8 +341,10 @@ static int __init dm_st_init(void)
|
||||
{
|
||||
int r = dm_register_path_selector(&st_ps);
|
||||
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
DMERR("register failed %d", r);
|
||||
return r;
|
||||
}
|
||||
|
||||
DMINFO("version " ST_VERSION " loaded");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user