]> 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)
commit4c0004448fb72f62bac431672f542f27e931d9b8
tree1a6dbe2b6d25b3d1791192824ea4c6205405a51b
parent1d8526d95a240e8727d2dc61dc05fddd37f42cda
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