<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/scsi/libiscsi.c, branch linux-3.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-07-25T07:48:08Z</updated>
<entry>
<title>iscsi: Add Serial Number Arithmetic LT and GT into iscsi_proto.h</title>
<updated>2011-07-25T07:48:08Z</updated>
<author>
<name>Nicholas Bellinger</name>
</author>
<published>2011-03-22T21:14:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8304bbceee505742925b487fd8ea56e1f8b4b805'/>
<id>urn:sha1:8304bbceee505742925b487fd8ea56e1f8b4b805</id>
<content type='text'>
This patch moves the iscsi_sna_lt() and iscsi_sna_lte(), along with
iscsi_sna_gt() and iscsi_sna_gte() from iscsi_target_mod into
static inlines inside of include/scsi/iscsi_proto.h

This patch also includes the ISCSI_HDR_LEN and ISCSI_CRC_LEN
definitions.

(Added JesperJ simpliciation for iscsi_sna_* usage)

Signed-off-by: Mark Rustad &lt;mark.d.rustad@intel.com&gt;
Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: Nicholas A. Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>iscsi: Use struct scsi_lun in iscsi structs instead of u8[8]</title>
<updated>2011-07-25T07:47:59Z</updated>
<author>
<name>Andy Grover</name>
</author>
<published>2011-06-16T22:57:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=55bdabdf41b6ee99e22e9d78a895b001fb1d852e'/>
<id>urn:sha1:55bdabdf41b6ee99e22e9d78a895b001fb1d852e</id>
<content type='text'>
struct scsi_lun is also just a struct with an array of 8 octets (64 bits)
but using it instead in iscsi structs lets us call scsilun_to_int
without a cast, and also lets us copy it using assignment, instead of
memcpy().

Signed-off-by: Andy Grover &lt;agrover@redhat.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>iscsi: Resolve iscsi_proto.h naming conflicts with drivers/target/iscsi</title>
<updated>2011-07-25T07:18:45Z</updated>
<author>
<name>Nicholas Bellinger</name>
</author>
<published>2011-05-27T11:16:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=123521830c0ea35055b900d2ff0b73bb129e08cb'/>
<id>urn:sha1:123521830c0ea35055b900d2ff0b73bb129e08cb</id>
<content type='text'>
This patch renames the following iscsi_proto.h structures to avoid
namespace issues with drivers/target/iscsi/iscsi_target_core.h:

*) struct iscsi_cmd -&gt; struct iscsi_scsi_req
*) struct iscsi_cmd_rsp -&gt; struct iscsi_scsi_rsp
*) struct iscsi_login -&gt; struct iscsi_login_req

This patch includes useful ISCSI_FLAG_LOGIN_[CURRENT,NEXT]_STAGE*,
and ISCSI_FLAG_SNACK_TYPE_* definitions used by iscsi_target_mod, and
fixes the incorrect definition of struct iscsi_snack to following
RFC-3720 Section 10.16. SNACK Request.

Also, this patch updates libiscsi, iSER, be2iscsi, and bn2xi to
use the updated structure definitions in a handful of locations.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: Nicholas A. Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>[SCSI] libiscsi: add helper to convert addr to string</title>
<updated>2011-02-24T17:41:08Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2011-02-16T21:04:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=00f3708e6ed1698d6aee3901ea991197e31a8007'/>
<id>urn:sha1:00f3708e6ed1698d6aee3901ea991197e31a8007</id>
<content type='text'>
This adds a helper to convert a addr struct to
a string. This will be used by the drivers in
the next patches.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
</content>
</entry>
<entry>
<title>[SCSI] libiscsi: use bh locking instead of irq with session lock</title>
<updated>2010-12-31T15:53:09Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2010-12-31T08:22:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bfcf72e4426da2fd8f8081a641385ffc3ccc2282'/>
<id>urn:sha1:bfcf72e4426da2fd8f8081a641385ffc3ccc2282</id>
<content type='text'>
The session lock is taken in threads, timers, and bottom halves
like softirqs and tasklets. All the code but
iscsi_conn/session_failure take the session lock with the spin_lock_bh
call. This was done because I thought some offload drivers
would be calling these functions from a irq. They never did,
so this patch has iscsi_conn/session_failure use the bh
locking.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
</content>
</entry>
<entry>
<title>[SCSI] libiscsi: do not take host lock in queuecommand</title>
<updated>2010-12-31T15:52:44Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2010-12-31T08:22:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f41d472179a0d7c8e8160c85180ab1124947068e'/>
<id>urn:sha1:f41d472179a0d7c8e8160c85180ab1124947068e</id>
<content type='text'>
iscsi_tcp, ib_iser, cxgb*, be2iscsi and bnx2i do not use
the host lock and do not take the session lock against
a irq, so this patch drops the DEF_SCSI_QCMD use. Instead
we just take the session lock and disable bhs.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
</content>
</entry>
<entry>
<title>[SCSI] libiscsi: add more informative failure message during iscsi scsi eh</title>
<updated>2010-12-31T15:51:54Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2010-12-31T08:22:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df4da5cdfca05b37b366b9c69925b68586969c1c'/>
<id>urn:sha1:df4da5cdfca05b37b366b9c69925b68586969c1c</id>
<content type='text'>
This adds a more informative error code and message
for the iscsi scsi eh session drop paths. This allows
you to distinguish if the session was dropped due to
a connection failure vs the iscsi layer dropping
the session due to scsi eh failure processing.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
</content>
</entry>
<entry>
<title>[SCSI] bnx2i: Added fix for NOP-Out response panic from unsolicited NOP-In</title>
<updated>2010-12-21T18:24:10Z</updated>
<author>
<name>Eddie Wai</name>
</author>
<published>2010-11-23T23:29:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8eea2f55a65b9471276e78e5c86ddd19c4c0365c'/>
<id>urn:sha1:8eea2f55a65b9471276e78e5c86ddd19c4c0365c</id>
<content type='text'>
The patch fixes the following situations where NOP-Out pkt is called for:
- local unsolicited NOP-Out requests (requesting no NOP-In response)
- local NOP-Out responses to unsolicited NOP-In requests

kernel panic is observed due to double session spin_lock requests; one in the
bnx2i_process_nopin_local_cmpl routine in bnx2i_hwi.c and the other in the
iscsi_put_task routine in libiscsi.c

The proposed fix is to export the currently static __iscsi_put_task() routine
and have bnx2i call it directly instead of the iscsi_put_task() routine which
holds the session spin lock.

Signed-off-by: Eddie Wai &lt;eddie.wai@broadcom.com&gt;
Reviewed-by: Michael Chan &lt;mchan@broadcom.com&gt;
Reviewed-by: Anil Veerabhadrappa &lt;anilgv@broadcom.com&gt;
Acked-by: Benjamin Li &lt;benli@broadcom.com&gt;
Reviewed-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
</content>
</entry>
<entry>
<title>SCSI host lock push-down</title>
<updated>2010-11-16T21:33:23Z</updated>
<author>
<name>Jeff Garzik</name>
</author>
<published>2010-11-16T07:10:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f281233d3eba15fb225d21ae2e228fd4553d824a'/>
<id>urn:sha1:f281233d3eba15fb225d21ae2e228fd4553d824a</id>
<content type='text'>
Move the mid-layer's -&gt;queuecommand() invocation from being locked
with the host lock to being unlocked to facilitate speeding up the
critical path for drivers who don't need this lock taken anyway.

The patch below presents a simple SCSI host lock push-down as an
equivalent transformation.  No locking or other behavior should change
with this patch.  All existing bugs and locking orders are preserved.

Additionally, add one parameter to queuecommand,
	struct Scsi_Host *
and remove one parameter from queuecommand,
	void (*done)(struct scsi_cmnd *)

Scsi_Host* is a convenient pointer that most host drivers need anyway,
and 'done' is redundant to struct scsi_cmnd-&gt;scsi_done.

Minimal code disturbance was attempted with this change.  Most drivers
needed only two one-line modifications for their host lock push-down.

Signed-off-by: Jeff Garzik &lt;jgarzik@redhat.com&gt;
Acked-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[SCSI] libiscsi: regression: fix header digest errors</title>
<updated>2010-05-02T15:16:50Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2010-04-24T21:21:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=96b1f96dcab87756c0a1e7ba76bc5dc2add82b88'/>
<id>urn:sha1:96b1f96dcab87756c0a1e7ba76bc5dc2add82b88</id>
<content type='text'>
This fixes a regression introduced with this commit:

commit d3305f3407fa3e9452079ec6cc8379067456e4aa
Author: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Date:   Thu Aug 20 15:10:58 2009 -0500

    [SCSI] libiscsi: don't increment cmdsn if cmd is not sent

in 2.6.32.

When I moved the hdr-&gt;cmdsn after init_task, I added
a bug when header digests are used. The problem is
that the LLD may calculate the header digest in init_task,
so if we then set the cmdsn after the init_task call we
change what the digest will be calculated by the target.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Cc: Stable Tree &lt;stable@kernel.org&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
</content>
</entry>
</feed>
