<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/scsi/libiscsi.c, branch v3.3.8</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/scsi/libiscsi.c?h=v3.3.8</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/scsi/libiscsi.c?h=v3.3.8'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-10-31T23:31:24Z</updated>
<entry>
<title>scsi: Fix up files implicitly depending on module.h inclusion</title>
<updated>2011-10-31T23:31:24Z</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2011-05-27T13:47:43Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=acf3368ffb75fc4a83726655d697e79646fe4eb3'/>
<id>urn:sha1:acf3368ffb75fc4a83726655d697e79646fe4eb3</id>
<content type='text'>
The module.h header was implicitly present everywhere, so files
with no explicit include of the module infrastructure would build
anyway.  We are now removing the implicit include, and so we need
to call out the module.h file that we need explicitly.

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] libiscsi: don't bugon when if user sets markers</title>
<updated>2011-08-27T14:36:19Z</updated>
<author>
<name>Mike Christie</name>
<email>michaelc@cs.wisc.edu</email>
</author>
<published>2011-07-25T18:48:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5431ae267ab20464cea3e1c1d1bc34d259f3973c'/>
<id>urn:sha1:5431ae267ab20464cea3e1c1d1bc34d259f3973c</id>
<content type='text'>
libiscsi does not support markers and if someone tries
to set them the driver does a BUG(). There is not need
to be that extreme. Just return -ENOSYS.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<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>
<email>nab@linux-iscsi.org</email>
</author>
<published>2011-03-22T21:14:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/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>
<email>agrover@redhat.com</email>
</author>
<published>2011-06-16T22:57:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/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>
<email>nab@linux-iscsi.org</email>
</author>
<published>2011-05-27T11:16:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/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>
<email>michaelc@cs.wisc.edu</email>
</author>
<published>2011-02-16T21:04:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/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>
<email>michaelc@cs.wisc.edu</email>
</author>
<published>2010-12-31T08:22:22Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/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>
<email>michaelc@cs.wisc.edu</email>
</author>
<published>2010-12-31T08:22:21Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/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>
<email>michaelc@cs.wisc.edu</email>
</author>
<published>2010-12-31T08:22:18Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/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>
<email>eddie.wai@broadcom.com</email>
</author>
<published>2010-11-23T23:29:21Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/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>
</feed>
