Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+6 -6
+6 -6
drivers/md/dm-mpath.c
··· 1962 1962 struct block_device **bdev) 1963 1963 { 1964 1964 struct multipath *m = ti->private; 1965 - struct pgpath *current_pgpath; 1965 + struct pgpath *pgpath; 1966 1966 unsigned long flags; 1967 1967 int r; 1968 1968 1969 - current_pgpath = READ_ONCE(m->current_pgpath); 1970 - if (!current_pgpath || !test_bit(MPATHF_QUEUE_IO, &m->flags)) 1971 - current_pgpath = choose_pgpath(m, 0); 1969 + pgpath = READ_ONCE(m->current_pgpath); 1970 + if (!pgpath || !test_bit(MPATHF_QUEUE_IO, &m->flags)) 1971 + pgpath = choose_pgpath(m, 0); 1972 1972 1973 - if (current_pgpath) { 1973 + if (pgpath) { 1974 1974 if (!test_bit(MPATHF_QUEUE_IO, &m->flags)) { 1975 - *bdev = current_pgpath->path.dev->bdev; 1975 + *bdev = pgpath->path.dev->bdev; 1976 1976 r = 0; 1977 1977 } else { 1978 1978 /* pg_init has not started or completed */