]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target: allow ALUA setup for some passthrough backends
authorMike Christie <mchristi@redhat.com>
Thu, 2 Mar 2017 05:13:24 +0000 (23:13 -0600)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 18 Mar 2017 21:47:25 +0000 (14:47 -0700)
commit530c6891b1220cba780b6c18f4691d85a3435080
tree26ff2d44658b4dae7d60500e0b79014ec1eaf4a0
parent2579325ca0acc598fdf41ba12b2871d3467f28df
target: allow ALUA setup for some passthrough backends

This patch allows passthrough backends to use the core/base LIO
ALUA setup and state checks, but still handle the execution of
commands.

This will allow the target_core_user module to execute STPG and RTPG
in userspace, and not have to duplicate the ALUA state checks, path
information (needed so we can check if command is executable on
specific paths) and setup (rtslib sets/updates the configfs ALUA
interface like it does for iblock or file).

For STPG, the target_core_user userspace daemon, tcmu-runner will
still execute the STPG, and to update the core/base LIO state it
will use the existing configfs interface. For RTPG, tcmu-runner
will loop over configfs and/or cache the state.

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