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

Commit 9f54cec5 authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm mpath: remove __pgpath_busy forward declaration, rename to pgpath_busy



Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent be7d31cc
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -121,7 +121,6 @@ static struct kmem_cache *_mpio_cache;
static struct workqueue_struct *kmultipathd, *kmpath_handlerd;
static struct workqueue_struct *kmultipathd, *kmpath_handlerd;
static void trigger_event(struct work_struct *work);
static void trigger_event(struct work_struct *work);
static void activate_path(struct work_struct *work);
static void activate_path(struct work_struct *work);
static int __pgpath_busy(struct pgpath *pgpath);




/*-----------------------------------------------
/*-----------------------------------------------
@@ -1635,7 +1634,7 @@ static int multipath_iterate_devices(struct dm_target *ti,
	return ret;
	return ret;
}
}


static int __pgpath_busy(struct pgpath *pgpath)
static int pgpath_busy(struct pgpath *pgpath)
{
{
	struct request_queue *q = bdev_get_queue(pgpath->path.dev->bdev);
	struct request_queue *q = bdev_get_queue(pgpath->path.dev->bdev);


@@ -1689,8 +1688,7 @@ static int multipath_busy(struct dm_target *ti)
	list_for_each_entry(pgpath, &pg->pgpaths, list)
	list_for_each_entry(pgpath, &pg->pgpaths, list)
		if (pgpath->is_active) {
		if (pgpath->is_active) {
			has_active = true;
			has_active = true;

			if (!pgpath_busy(pgpath)) {
			if (!__pgpath_busy(pgpath)) {
				busy = false;
				busy = false;
				break;
				break;
			}
			}