提交 def052d2 编写于 作者: A Alasdair G Kergon

dm mpath: fix test for reinstate_path

Fix test for reinstate_path method before attempting to use it.
Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
Cc: Julia Lawall <julia@diku.dk>
上级 148acff6
......@@ -871,7 +871,7 @@ static int reinstate_path(struct pgpath *pgpath)
if (pgpath->path.is_active)
goto out;
if (!pgpath->pg->ps.type) {
if (!pgpath->pg->ps.type->reinstate_path) {
DMWARN("Reinstate path not supported by path selector %s",
pgpath->pg->ps.type->name);
r = -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册