]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e3ae385dc05a2437e6f8f797a1fed0a7d4eb5dc
tree1a6dbe2b6d25b3d1791192824ea4c6205405a51b
parent64a444ce71b46a1cf2816b0ce0423413c1284ebd
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