Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4813577f authored by Bart Van Assche's avatar Bart Van Assche Committed by Mike Snitzer
Browse files

dm mpath: change return type of pg_init_all_paths() from int to void



None of the callers of pg_init_all_paths() check its return value.

Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent cc5bd925
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -372,16 +372,13 @@ static int __pg_init_all_paths(struct multipath *m)
	return atomic_read(&m->pg_init_in_progress);
}

static int pg_init_all_paths(struct multipath *m)
static void pg_init_all_paths(struct multipath *m)
{
	int r;
	unsigned long flags;

	spin_lock_irqsave(&m->lock, flags);
	r = __pg_init_all_paths(m);
	__pg_init_all_paths(m);
	spin_unlock_irqrestore(&m->lock, flags);

	return r;
}

static void __switch_pg(struct multipath *m, struct priority_group *pg)