]> git.baikalelectronics.ru Git - kernel.git/commit
iscsi-target: Add iser network portal attribute
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 7 Mar 2013 06:20:36 +0000 (22:20 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 25 Apr 2013 08:05:28 +0000 (01:05 -0700)
commit2abbe4e20a0a7d34bafb8f378ce57850d84ee1ce
tree39e013ea1749c2227d8f8a1580191febf779e68f
parentceb1649e8429d418d21943d841975c5331dffd02
iscsi-target: Add iser network portal attribute

This patch adds a new network portal attribute for iser, that lives
under existing iscsi-target configfs layout at:

   /sys/kernel/config/target/iscsi/$TARGETNAME/$TPGT/np/$PORTAL/iser

When lio_target_np_store_iser() is enabled, iscsit_tpg_add_network_portal()
will attempt to start an rdma_cma network portal for iser-target, only if
the external ib_isert module transport has been loaded.

When disabled, iscsit_tpg_del_network_portal() will cease iser login service
on the network portal, and release any external ib_isert module reference.

v4 changes:

- Add request_module for ib_isert to lio_target_np_store_iser()

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c