History log of /openbsd-current/usr.sbin/iscsid/task.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.10 10-May-2014 claudio

Move the task cleanup from the task fail callback to taskq_cleanup.
This makes the one failure callback a lot simpler.


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.9 28-Apr-2011 claudio

Try to schedule a new task for the connection in conn_task_cleanup()
this removes the session_schedule() in the task_pdu_cb().


# 1.8 27-Apr-2011 claudio

Rename task_cleanup() to conn_task_cleanup() seems a better place for
this function since it does connections scheduling.


# 1.7 27-Apr-2011 claudio

Start implementing the FSM. Introduce a session FSM that is run via a
callback and implement some of the connection FSM actions. Implement
logouts so that discovery sessions do a nice login -> query -> logout.
Fix the task scheduling especially for immediate and connection specific
tasks. The session will now only schedule tasks to a session that is
in LOGGED_IN state.
looks good dlg@


Revision tags: OPENBSD_4_9_BASE
# 1.6 06-Jan-2011 claudio

Ugly hack, call session_schedule in the task pdu callback handler.
Without this accessing both LU on my iscsi target will lock up
because tasks a queued but no longer scheduled.
We need a better task scheduler but this allows me to run iogen on both
partitions without locking up.


# 1.5 04-Jan-2011 claudio

Implememnt NOP-IN -> NOP-OUT handling. If the NOP-In was issued by the
target (itt = 0xffffffff) send back an immediate NOP-Out reusing the
NOP-In PDU. This makes my iscsi target happy.
Also plug a mem leak on error path which was found by Igor Zinovik.


# 1.4 04-Jan-2011 claudio

Log the PDU which failed because no task was found.
Should help identify the messages that are issued by the target (e.g. NOP).


# 1.3 25-Sep-2010 sobrado

spacing, no binary changes.


# 1.2 25-Sep-2010 sobrado

fix typos in documentation and log_debug() function.

ok claudio@


# 1.1 24-Sep-2010 claudio

iSCSI Initiatior daemon using vscsi(4).
Currently implements the absolute minimum of the protocol to make
it work against targets. Many things still in flux but we're annoyed
to work outside of the tree. Commited from a source tree on an iSCSI
disk served via iscsid but it is not yet production ready.
OK dlg@, matthew@, deraadt@