dm-mpath.c (148acff615b403168cdf39e55bfcfaa6e4a7d233) dm-mpath.c (def052d21c4e77975bb75cf212f018ec913f8e2f)
1/*
2 * Copyright (C) 2003 Sistina Software Limited.
3 * Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm.h"

--- 857 unchanged lines hidden (view full) ---

866 unsigned long flags;
867 struct multipath *m = pgpath->pg->m;
868
869 spin_lock_irqsave(&m->lock, flags);
870
871 if (pgpath->path.is_active)
872 goto out;
873
1/*
2 * Copyright (C) 2003 Sistina Software Limited.
3 * Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm.h"

--- 857 unchanged lines hidden (view full) ---

866 unsigned long flags;
867 struct multipath *m = pgpath->pg->m;
868
869 spin_lock_irqsave(&m->lock, flags);
870
871 if (pgpath->path.is_active)
872 goto out;
873
874 if (!pgpath->pg->ps.type) {
874 if (!pgpath->pg->ps.type->reinstate_path) {
875 DMWARN("Reinstate path not supported by path selector %s",
876 pgpath->pg->ps.type->name);
877 r = -EINVAL;
878 goto out;
879 }
880
881 r = pgpath->pg->ps.type->reinstate_path(&pgpath->pg->ps, &pgpath->path);
882 if (r)

--- 590 unchanged lines hidden ---
875 DMWARN("Reinstate path not supported by path selector %s",
876 pgpath->pg->ps.type->name);
877 r = -EINVAL;
878 goto out;
879 }
880
881 r = pgpath->pg->ps.type->reinstate_path(&pgpath->pg->ps, &pgpath->path);
882 if (r)

--- 590 unchanged lines hidden ---