target: fail ALUA transitions for pscsi
authorMike Christie <mchristi@redhat.com>
Thu, 2 Mar 2017 05:13:25 +0000 (23:13 -0600)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 18 Mar 2017 21:47:26 +0000 (14:47 -0700)
commit0a4145729871ef29afe8b0c57560a1f5bd736416
tree1a6dbe2b6d25b3d1791192824ea4c6205405a51b
parent530c6891b1220cba780b6c18f4691d85a3435080
target: fail ALUA transitions for pscsi

We do not setup the LU group for pscsi devices, so if you write
a state to alua_access_state that will cause a transition you will
get a NULL pointer dereference.

This patch will fail attempts to try and transition the path
for backend devices that set the TRANSPORT_FLAG_PASSTHROUGH_ALUA
flag.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_alua.c