aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_frontend_iscsi.h
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2014-07-07 09:37:22 +0000
committerAlexander Motin <mav@FreeBSD.org>2014-07-07 09:37:22 +0000
commit604e257984185ecd666efa4f8db473471b743f2e (patch)
tree556322b32c5456bd0101529ae4c7d483d86fdcd8 /sys/cam/ctl/ctl_frontend_iscsi.h
parent0f8de8afaa7448ecbb10c7fd0c61191a2b78f01d (diff)
downloadsrc-604e257984185ecd666efa4f8db473471b743f2e.tar.gz
src-604e257984185ecd666efa4f8db473471b743f2e.zip
Teach ctl_add_initiator() to dynamically allocate IIDs from pool.
If port passed negative IID value, the function will try to allocate IID from the pool of unused, based on passed wwpn or name arguments. It does all its best to make IID unique and persistent across reconnects. This makes persistent reservation properly work for iSCSI. Previously, in case of reconnects, reservation could be unexpectedly lost, or even migrate between intiators.
Notes
Notes: svn path=/head/; revision=268362
Diffstat (limited to 'sys/cam/ctl/ctl_frontend_iscsi.h')
-rw-r--r--sys/cam/ctl/ctl_frontend_iscsi.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/cam/ctl/ctl_frontend_iscsi.h b/sys/cam/ctl/ctl_frontend_iscsi.h
index 76d8254d7b09..0ac0e98ce46c 100644
--- a/sys/cam/ctl/ctl_frontend_iscsi.h
+++ b/sys/cam/ctl/ctl_frontend_iscsi.h
@@ -112,8 +112,6 @@ struct cfiscsi_softc {
unsigned int last_session_id;
TAILQ_HEAD(, cfiscsi_target) targets;
TAILQ_HEAD(, cfiscsi_session) sessions;
- char ctl_initids[CTL_MAX_INIT_PER_PORT];
- int max_initiators;
#ifdef ICL_KERNEL_PROXY
struct icl_listen *listener;
struct cv accept_cv;