]> git.baikalelectronics.ru Git - kernel.git/commit
target: Add MI_REPORT_TARGET_PGS ext. header + implict_trans_secs attribute
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 17 May 2012 05:02:34 +0000 (22:02 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 17 May 2012 07:45:58 +0000 (00:45 -0700)
commit11b9ee7871800265f97e2002305d9e97843af63e
tree3d7fbce10e7379097f34276b6a8a7d090d4dc813
parent06208cf7a5962b6cc9fb5ff357fa8df8b2325ddf
target: Add MI_REPORT_TARGET_PGS ext. header + implict_trans_secs attribute

This patch adds support for ALUA MI_REPORT_TARGET_PGS extended header
format defined within SPC-4.  It changes target core ALUA emulation logic
within target_emulate_report_target_port_groups() to support both the
extended and original length only header formats.

It includes adding a new 'implict_trans_secs' attribute for each ALUA
target port group to control the value returned to the application client
for an recommended implict translation timeout in seconds.  By default
this value is currently set to zero, and limited up to 255 by virtue of
using a single byte in the extended header format.

This value is used by target_emulate_report_target_port_groups() within
the extended header logic to set IMPLICIT TRANSITION TIME as defined by
spc4r30.

Cc: Hannes Reinecke <hare@suse.de>
Cc: Rob Evers <revers@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_alua.c
drivers/target/target_core_alua.h
drivers/target/target_core_configfs.c
include/target/target_core_base.h