summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iscsid/task.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move the task cleanup from the task fail callback to taskq_cleanup.claudio2014-05-101-5/+3
| | | | This makes the one failure callback a lot simpler.
* Try to schedule a new task for the connection in conn_task_cleanup()claudio2011-04-281-2/+1
| | | | this removes the session_schedule() in the task_pdu_cb().
* Rename task_cleanup() to conn_task_cleanup() seems a better place forclaudio2011-04-271-16/+2
| | | | this function since it does connections scheduling.
* Start implementing the FSM. Introduce a session FSM that is run via aclaudio2011-04-271-3/+28
| | | | | | | | | 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@
* Ugly hack, call session_schedule in the task pdu callback handler.claudio2011-01-061-1/+2
| | | | | | | 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.
* Implememnt NOP-IN -> NOP-OUT handling. If the NOP-In was issued by theclaudio2011-01-041-1/+9
| | | | | | 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.
* Log the PDU which failed because no task was found.claudio2011-01-041-2/+3
| | | | Should help identify the messages that are issued by the target (e.g. NOP).
* spacing, no binary changes.sobrado2010-09-251-2/+2
|
* fix typos in documentation and log_debug() function.sobrado2010-09-251-2/+2
| | | | ok claudio@
* iSCSI Initiatior daemon using vscsi(4).claudio2010-09-241-0/+124
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@