Skip to content

Commit

Permalink
dm mpath: remove __pgpath_busy forward declaration, rename to pgpath_…
Browse files Browse the repository at this point in the history
…busy

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Mike Snitzer committed Feb 23, 2016
1 parent be7d31c commit 9f54cec
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ static struct kmem_cache *_mpio_cache;
static struct workqueue_struct *kmultipathd, *kmpath_handlerd;
static void trigger_event(struct work_struct *work);
static void activate_path(struct work_struct *work);
static int __pgpath_busy(struct pgpath *pgpath);


/*-----------------------------------------------
Expand Down Expand Up @@ -1635,7 +1634,7 @@ static int multipath_iterate_devices(struct dm_target *ti,
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);

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

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

0 comments on commit 9f54cec

Please sign in to comment.