[libmultipath] don't re-select the getprio fn when not needed
authorChristophe Varoqui <root@xa-s05.(none)>
Wed, 16 Nov 2005 15:26:10 +0000 (16:26 +0100)
committerChristophe Varoqui <root@xa-s05.(none)>
Wed, 16 Nov 2005 15:26:10 +0000 (16:26 +0100)
commit45d19bedd2793f0a3fd400a7742f3577cf466a74
tree24a1ead23bf07761e64690b504e773c2eb481b22
parent9fd6afd31b20077a1b6e68988915696630e6e1e0
[libmultipath] don't re-select the getprio fn when not needed

The pp->getprio was used
1) to store the prioritizer function pointer
2) to determine if the prioritizer was already selected

But NULL is a valid value for already selected getprio.
Which causes uneeded re-selection.

So introduce a pp->getprio_selected flag to straight this out.

Edward Goggin, EMC
libmultipath/cache.c
libmultipath/discovery.c
libmultipath/structs.h
multipathd/main.c