Honour ALUA preference indicator
authorColin Watson <cjwatson@canonical.com>
Fri, 12 Feb 2010 12:18:59 +0000 (12:18 +0000)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Sat, 13 Feb 2010 14:32:02 +0000 (15:32 +0100)
commitb68400c7b1a1863bd606e7909b2ab3fb2df3c7b7
tree4b3f913148d8336ae8ca11daf115771706ccf567
parent1d4089c41874a4cafdb6627d5cbb6797d9e47184
Honour ALUA preference indicator

SPC defines the preference indicator (bit 7 of the first byte returned
by REPORT TARGET PORT GROUPS) as indicating a preferred primary target
port group, and says that applications may use it to influence path
selection.  Choose TPGs with this bit set over TPGs with it unset.

This fixes failback handling with the Intel Modular Server.

Signed-off-by: Yingying Zhao <yingying.zhao@intel.com>
Signed-off-by: Colin Watson <cjwatson@canonical.com>
libmultipath/prioritizers/alua.c
libmultipath/prioritizers/alua_spc3.h