Commit 6edebdee authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Alasdair G Kergon

dm stripe: fix init failure

Don't proceed if dm_stripe_init() fails to register itself as a dm target.
Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 18776c73
......@@ -320,8 +320,10 @@ int __init dm_stripe_init(void)
int r;
r = dm_register_target(&stripe_target);
if (r < 0)
if (r < 0) {
DMWARN("target registration failed");
return r;
}
kstriped = create_singlethread_workqueue("kstriped");
if (!kstriped) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment