• Nicholas Bellinger's avatar
    tcmu: Convert cmd_time_out into backend device attribute · 7d7a7435
    Nicholas Bellinger authored
    Instead of putting cmd_time_out under ../target/core/user_0/foo/control,
    which has historically been used by parameters needed for initial
    backend device configuration, go ahead and move cmd_time_out into
    a backend device attribute.
    
    In order to do this, tcmu_module_init() has been updated to create
    a local struct configfs_attribute **tcmu_attrs, that is based upon
    the existing passthrough_attrib_attrs along with the new cmd_time_out
    attribute.  Once **tcm_attrs has been setup, go ahead and point
    it at tcmu_ops->tb_dev_attrib_attrs so it's picked up by target-core.
    
    Also following MNC's previous change, ->cmd_time_out is stored in
    milliseconds but exposed via configfs in seconds.  Also, note this
    patch restricts the modification of ->cmd_time_out to before +
    after the TCMU device has been configured, but not while it has
    active fabric exports.
    
    Cc: Mike Christie <mchristi@redhat.com>
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    7d7a7435
Name
Last commit
Last update
..
iscsi Loading commit data...
loopback Loading commit data...
sbp Loading commit data...
tcm_fc Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
target_core_alua.c Loading commit data...
target_core_alua.h Loading commit data...
target_core_configfs.c Loading commit data...
target_core_device.c Loading commit data...
target_core_fabric_configfs.c Loading commit data...
target_core_fabric_lib.c Loading commit data...
target_core_file.c Loading commit data...
target_core_file.h Loading commit data...
target_core_hba.c Loading commit data...
target_core_iblock.c Loading commit data...
target_core_iblock.h Loading commit data...
target_core_internal.h Loading commit data...
target_core_pr.c Loading commit data...
target_core_pr.h Loading commit data...
target_core_pscsi.c Loading commit data...
target_core_pscsi.h Loading commit data...
target_core_rd.c Loading commit data...
target_core_rd.h Loading commit data...
target_core_sbc.c Loading commit data...
target_core_spc.c Loading commit data...
target_core_stat.c Loading commit data...
target_core_tmr.c Loading commit data...
target_core_tpg.c Loading commit data...
target_core_transport.c Loading commit data...
target_core_ua.c Loading commit data...
target_core_ua.h Loading commit data...
target_core_user.c Loading commit data...
target_core_xcopy.c Loading commit data...
target_core_xcopy.h Loading commit data...