diff options
author | Mike Snitzer <snitzer@redhat.com> | 2020-06-10 21:25:39 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-07-13 11:47:32 -0400 |
commit | 564dbb130b3f8ab39719a42c130505bf75610fbf (patch) | |
tree | 5124b1b6ade4f11aa0e6561961246afd2bb8418d /drivers/md/dm-mpath.c | |
parent | 17213ec1806199ab528655946af144abc37d89fb (diff) | |
download | linux-564dbb130b3f8ab39719a42c130505bf75610fbf.tar.bz2 |
dm mpath: rename current_pgpath to pgpath in multipath_prepare_ioctl
Makes consistent with __map_bio() and multipath_clone_and_map().
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r-- | drivers/md/dm-mpath.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index ab6ccd619573..f71bb4e5eaf7 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -1962,17 +1962,17 @@ static int multipath_prepare_ioctl(struct dm_target *ti, struct block_device **bdev) { struct multipath *m = ti->private; - struct pgpath *current_pgpath; + struct pgpath *pgpath; unsigned long flags; int r; - current_pgpath = READ_ONCE(m->current_pgpath); - if (!current_pgpath || !test_bit(MPATHF_QUEUE_IO, &m->flags)) - current_pgpath = choose_pgpath(m, 0); + pgpath = READ_ONCE(m->current_pgpath); + if (!pgpath || !test_bit(MPATHF_QUEUE_IO, &m->flags)) + pgpath = choose_pgpath(m, 0); - if (current_pgpath) { + if (pgpath) { if (!test_bit(MPATHF_QUEUE_IO, &m->flags)) { - *bdev = current_pgpath->path.dev->bdev; + *bdev = pgpath->path.dev->bdev; r = 0; } else { /* pg_init has not started or completed */ |