<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/scsi/libiscsi.h, branch linux-2.6.27.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.27.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.27.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2008-07-12T13:22:22Z</updated>
<entry>
<title>[SCSI] libiscsi, iser, tcp: remove recv_lock</title>
<updated>2008-07-12T13:22:22Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2008-05-21T20:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=913e5bf435617aa529919a4f7567f849f9f35f9f'/>
<id>urn:sha1:913e5bf435617aa529919a4f7567f849f9f35f9f</id>
<content type='text'>
The recv lock was defined so the iscsi layer could block
the recv path from processing IO during recovery. It
turns out iser just set a lock to that pointer which was pointless.

We now disconnect the transport connection before doing recovery
so we do not need the recv lock. For iscsi_tcp we still stop
the recv path incase older tools are being used.

This patch also has iscsi_itt_to_ctask user grab the session lock
and has the caller access the task with the lock or get a ref
to it in case the target is broken and sends a tmf success response
then sends data or a response for the command that was supposed to
be affected bty the tmf.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] libiscsi: fix cmds_max setting</title>
<updated>2008-07-12T13:22:21Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2008-05-21T20:54:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3cf7b233ffc45d4fc381221f74d24f10e692c4ea'/>
<id>urn:sha1:3cf7b233ffc45d4fc381221f74d24f10e692c4ea</id>
<content type='text'>
Drivers expect that the cmds_max value they pass to the iscsi layer
is the max scsi commands  + mgmt tasks. This patch implements that
and fixes some checks for nr cmd limits.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] iscsi class: Add session initiatorname and ifacename sysfs attrs.</title>
<updated>2008-07-12T13:22:21Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2008-05-21T20:54:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=88dfd340b9dece8fcaa1a2d4c782338926c017f7'/>
<id>urn:sha1:88dfd340b9dece8fcaa1a2d4c782338926c017f7</id>
<content type='text'>
This adds two new attrs used for creating initiator ports and
binding sessions to hardware.

The session level initiatorname:

Since bnx2i does a scsi_host per host device, we need to add the
iface initiator port settings on the session, so we can create
multiple initiator ports (each with different inames) per device/scsi_host.

The current iname reflects that qla4xxx can have one iname per hba, and we are
allocating a host per session for software. The iname on the host will
remain so we can export and set the hba level qla4xxx setting.

The ifacename attr:

To bind a session to a some peice of hardware in userspace we maintain
some mappings, but during boot or iscsid restart (iscsid contains the user
space part of the driver) we need to be able to figure out which of those
host mappings abstractions maps to certain sessions. This patch adds
a ifacename attr, which userspace can set to id the host side of the
endpoint across pivot_roots and iscsid restarts.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] iscsi class: user device_for_each_child instead of duplicating session list</title>
<updated>2008-07-12T13:22:20Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2008-05-21T20:54:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7970634b81a6e3561954517bca42615542c4535b'/>
<id>urn:sha1:7970634b81a6e3561954517bca42615542c4535b</id>
<content type='text'>
Currently we duplicate the list of sessions, because we were using the
test for if a session was on the host list to indicate if the session
was bound or unbound. We can instead use the target_id and fix up
the class so that drivers like bnx2i do not have to manage the target id
space.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] libiscsi: rename iscsi_cmd_task to iscsi_task</title>
<updated>2008-07-12T13:22:19Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2008-05-21T20:54:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c19a7d0387124a508d2cdb38ebf8cd484631ad0'/>
<id>urn:sha1:9c19a7d0387124a508d2cdb38ebf8cd484631ad0</id>
<content type='text'>
This is the second part of the iscsi task merging, and
all it does it rename iscsi_cmd_task to iscsi_task and
mtask/ctask to just task.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] libiscsi: merge iscsi_mgmt_task and iscsi_cmd_task</title>
<updated>2008-07-12T13:22:19Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2008-05-21T20:54:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3e5c28ad0391389959ccae81c938c7533efb3490'/>
<id>urn:sha1:3e5c28ad0391389959ccae81c938c7533efb3490</id>
<content type='text'>
There is no need to have the mgmt and cmd tasks separate
structs. It used to save a lot of memory when we overprealocated
memory for tasks, but the next patches will set up the
driver so in the future they can use a mempool or some other
common scsi command allocator and common tagging.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] libiscsi, iscsi_tcp, iser: add session cmds array accessor</title>
<updated>2008-07-12T13:22:18Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2008-05-21T20:54:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0af967f5d4f2dd1e00618d34ac988037d37a6c3b'/>
<id>urn:sha1:0af967f5d4f2dd1e00618d34ac988037d37a6c3b</id>
<content type='text'>
Currently to get a ctask from the session cmd array, you have to
know to use the itt modifier. To make this easier on LLDs and
so in the future we can easilly kill the session array and use
the host shared map instead, this patch adds a nice wrapper
to strip the itt into a session-&gt;cmds index and return a ctask.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] iscsi: modify iscsi printk so it can take driver data pointers</title>
<updated>2008-07-12T13:22:17Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2008-05-21T20:54:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5af3e91d232b7e022f258202f72ebb79b8b0c706'/>
<id>urn:sha1:5af3e91d232b7e022f258202f72ebb79b8b0c706</id>
<content type='text'>
Some drivers want to be able to just pass in the driver data pointers
to the iscsi objects. To enable this we need the iscsi printk macro
to cast the object.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] iscsi: remove session/conn_data_size from iscsi_transport</title>
<updated>2008-07-12T13:22:16Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2008-05-21T20:54:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5d91e209fb21fb9cc765729d4c6a85a9fb6c9187'/>
<id>urn:sha1:5d91e209fb21fb9cc765729d4c6a85a9fb6c9187</id>
<content type='text'>
This removes the session and conn data_size fields from the iscsi_transport.
Just pass in the value like with host allocation. This patch also makes
it so the LLD iscsi_conn data is allocated with the iscsi_cls_conn.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] iscsi: add iscsi host helpers</title>
<updated>2008-07-12T13:22:16Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2008-05-21T20:54:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a4804cd6eb19318ae8d08ea967cfeaaf5c5b68a6'/>
<id>urn:sha1:a4804cd6eb19318ae8d08ea967cfeaaf5c5b68a6</id>
<content type='text'>
This finishes the host/session unbinding, by adding some helpers
to add and remove hosts and the session they manage.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
</feed>
