|
@@ -871,7 +871,7 @@ static int reinstate_path(struct pgpath *pgpath)
|
|
if (pgpath->path.is_active)
|
|
if (pgpath->path.is_active)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
- if (!pgpath->pg->ps.type) {
|
|
|
|
|
|
+ if (!pgpath->pg->ps.type->reinstate_path) {
|
|
DMWARN("Reinstate path not supported by path selector %s",
|
|
DMWARN("Reinstate path not supported by path selector %s",
|
|
pgpath->pg->ps.type->name);
|
|
pgpath->pg->ps.type->name);
|
|
r = -EINVAL;
|
|
r = -EINVAL;
|