dm stripe: fix init failure
Don't proceed if dm_stripe_init() fails to register itself as a dm target. Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
This commit is contained in:
committed by
Alasdair G Kergon
parent
18776c7316
commit
6edebdee48
@@ -320,8 +320,10 @@ int __init dm_stripe_init(void)
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
r = dm_register_target(&stripe_target);
|
r = dm_register_target(&stripe_target);
|
||||||
if (r < 0)
|
if (r < 0) {
|
||||||
DMWARN("target registration failed");
|
DMWARN("target registration failed");
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
kstriped = create_singlethread_workqueue("kstriped");
|
kstriped = create_singlethread_workqueue("kstriped");
|
||||||
if (!kstriped) {
|
if (!kstriped) {
|
||||||
|
Reference in New Issue
Block a user