alua: Do not add preferred path priority for active/optimized
authorHannes Reinecke <hare@suse.de>
Tue, 16 Jul 2013 07:12:54 +0000 (09:12 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 16 Jul 2013 19:49:17 +0000 (21:49 +0200)
commitb330bf8a5e6a29b51af0d8b4088e0d8554e5cfb4
tree8f5c614dda0a53fa72137d0cfaae70982071d3b0
parent4cd37b8b2610b06baa9a21ff352d76f6a88e7fc4
alua: Do not add preferred path priority for active/optimized

When a path is in active/optimized we should disregard the
'preferred path' bit when calculating the priority.
Otherwise we'll end up with having two different priorities
(one for 'active/optimized (preferred)' and one for
'active/optimized (non-preferred)').
Which will result in two different path groups and a
sub-optimal path usage.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/prioritizers/alua.c