<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/target/sbp, branch linux-3.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-12-13T05:17:25Z</updated>
<entry>
<title>sbp-target: fix error path in sbp_make_tpg()</title>
<updated>2012-12-13T05:17:25Z</updated>
<author>
<name>Chris Boot</name>
</author>
<published>2012-12-11T21:58:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e1fe2060d7e8f58a69374135e32e90f0bb79a7fd'/>
<id>urn:sha1:e1fe2060d7e8f58a69374135e32e90f0bb79a7fd</id>
<content type='text'>
If the TPG memory is allocated successfully, but we fail further along
in the function, a dangling pointer to freed memory is left in the TPort
structure. This is mostly harmless, but does prevent re-trying the
operation without first removing the TPort altogether.

Reported-by: Chen Gang &lt;gang.chen@asianux.com&gt;
Signed-off-by: Chris Boot &lt;bootc@bootc.net&gt;
Cc: Andy Grover &lt;agrover@redhat.com&gt;
Cc: Nicholas A. Bellinger &lt;nab@linux-iscsi.org&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>sbp-target: use simple assignment in tgt_agent_rw_agent_state()</title>
<updated>2012-12-13T05:16:47Z</updated>
<author>
<name>Chris Boot</name>
</author>
<published>2012-12-11T21:58:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=37419d674ca99739dbee5ada28b50aacc29c94e1'/>
<id>urn:sha1:37419d674ca99739dbee5ada28b50aacc29c94e1</id>
<content type='text'>
There is no need to memcpy() a 32-bit integer. The data pointer is
guaranteed to be quadlet aligned by the FireWire stack so we can replace
the memcpy() with an assignment.

Thanks to Stefan Richter.

Signed-off-by: Chris Boot &lt;bootc@bootc.net&gt;
Cc: Stefan Richter &lt;stefanr@s5r6.in-berlin.de&gt;
Cc: Andy Grover &lt;agrover@redhat.com&gt;
Cc: Clemens Ladisch &lt;clemens@ladisch.de&gt;
Cc: Nicholas A. Bellinger &lt;nab@linux-iscsi.org&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>sbp-target: remove depends on CONFIG_EXPERIMENTAL</title>
<updated>2012-11-08T04:12:09Z</updated>
<author>
<name>Kees Cook</name>
</author>
<published>2012-11-05T23:04:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=314da1aa57c3f2be8a07f3d944a541b595e8cb7d'/>
<id>urn:sha1:314da1aa57c3f2be8a07f3d944a541b595e8cb7d</id>
<content type='text'>
The CONFIG_EXPERIMENTAL config item has not carried much meaning for a
while now and is almost always enabled by default. As agreed during the
Linux kernel summit, remove it from any "depends on" lines in Kconfigs.

CC: Chris Boot &lt;bootc@bootc.net&gt;
CC: "Nicholas A. Bellinger" &lt;nab@linux-iscsi.org&gt;
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>sbp-target: fix return value check in sbp_register_configfs()</title>
<updated>2012-09-22T23:29:52Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2012-09-21T05:57:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b659f4b4ff52b14dcef4848e3f434b3582842960'/>
<id>urn:sha1:b659f4b4ff52b14dcef4848e3f434b3582842960</id>
<content type='text'>
In case of error, the function target_fabric_configfs_init() returns
ERR_PTR() not NULL pointer. The NULL test in the return value check
should be replaced with IS_ERR().

dpatch engine is used to auto generated this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun &lt;yongjun_wei@trendmicro.com.cn&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target: use list_move_tail instead of list_del/list_add_tail</title>
<updated>2012-09-18T00:13:36Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2012-09-05T06:42:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bf11eefcb1dc1326341ebdc44566ad08bee3f539'/>
<id>urn:sha1:bf11eefcb1dc1326341ebdc44566ad08bee3f539</id>
<content type='text'>
Using list_move_tail() instead of list_del() + list_add_tail().

spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun &lt;yongjun_wei@trendmicro.com.cn&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target: Simplify fabric sense data length handling</title>
<updated>2012-09-18T00:12:58Z</updated>
<author>
<name>Roland Dreier</name>
</author>
<published>2012-08-15T21:35:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c58b7ddd70dd7bfaac4ca87131f36d10aaba441'/>
<id>urn:sha1:9c58b7ddd70dd7bfaac4ca87131f36d10aaba441</id>
<content type='text'>
Every fabric driver has to supply a se_tfo-&gt;set_fabric_sense_len()
method, just so iSCSI can return an offset of 2.  However, every fabric
driver is already allocating a sense buffer and passing it into the
target core, either via transport_init_se_cmd() or target_submit_cmd().

So instead of having iSCSI pass the start of its sense buffer into the
core and then later tell the core to skip the first 2 bytes, it seems
easier for iSCSI just to do the offset of 2 when it passes the sense
buffer into the core.  Then we can drop the se_tfo-&gt;set_fabric_sense_len()
everywhere, and just add a couple of lines of code to iSCSI to set the
sense data length to the beginning of the buffer right before it sends
it over the network.

(nab: Remove .set_fabric_sense_len usage from tcm_qla2xxx_npiv_ops +
      change transport_get_sense_buffer to follow v3.6-rc6 code w/o
      -&gt;set_fabric_sense_len usage)

Signed-off-by: Roland Dreier &lt;roland@purestorage.com&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target: Remove unused target_core_fabric_ops.get_fabric_sense_len method</title>
<updated>2012-09-17T23:15:47Z</updated>
<author>
<name>Roland Dreier</name>
</author>
<published>2012-08-15T21:35:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2ed772b7b9df0f459308b3cbececc0136076d09e'/>
<id>urn:sha1:2ed772b7b9df0f459308b3cbececc0136076d09e</id>
<content type='text'>
There are no callers of se_tfo-&gt;get_fabric_sense_len(), so we should
stop having every fabric driver implement it.

Signed-off-by: Roland Dreier &lt;roland@purestorage.com&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target/sbp: Remove strict param from sbp_parse_wwn</title>
<updated>2012-09-17T23:15:47Z</updated>
<author>
<name>Andy Grover</name>
</author>
<published>2012-07-30T22:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=343d475d6176fa081918fcbf3fcb0b0143e28661'/>
<id>urn:sha1:343d475d6176fa081918fcbf3fcb0b0143e28661</id>
<content type='text'>
It's always set, and controls whether uppercase A-F are allowed hex values.
I don't see a reason not to accept these.

Signed-off-by: Andy Grover &lt;agrover@redhat.com&gt;
Cc: Chris Boot &lt;bootc@bootc.net&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target: Allow for target_submit_cmd() returning errors</title>
<updated>2012-07-18T00:05:05Z</updated>
<author>
<name>Roland Dreier</name>
</author>
<published>2012-07-16T18:04:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d6dfc868bcf329392abd1ecfa7357eb51ebf8c30'/>
<id>urn:sha1:d6dfc868bcf329392abd1ecfa7357eb51ebf8c30</id>
<content type='text'>
We want it to be possible for target_submit_cmd() to return errors up
to its fabric module callers.  For now just update the prototype to
return an int, and update all callers to handle non-zero return values
as an error.

This is immediately useful for tcm_qla2xxx to fix a long-standing active
I/O session shutdown race, but tcm_fc, usb-gadget, and sbp-target the
fabric maintainers need to check + ACK that handling a target_submit_cmd()
failure due to session shutdown does not introduce regressions

(nab: Respin against for-next after initial NACK + update docbook comment +
      fix double se_cmd init in exception path for usb-gadget)

Cc: Chad Dupuis &lt;chad.dupuis@qlogic.com&gt;
Cc: Arun Easi &lt;arun.easi@qlogic.com&gt;
Cc: Chris Boot &lt;bootc@bootc.net&gt;
Cc: Stefan Richter &lt;stefanr@s5r6.in-berlin.de&gt;
Cc: Mark Rustad &lt;mark.d.rustad@intel.com&gt;
Cc: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Cc: Felipe Balbi &lt;balbi@ti.com&gt;
Cc: Andy Grover &lt;agrover@redhat.com&gt;
Signed-off-by: Roland Dreier &lt;roland@purestorage.com&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>sbp-target: Consolidate duplicated error path code in sbp_handle_command()</title>
<updated>2012-07-17T00:35:26Z</updated>
<author>
<name>Roland Dreier</name>
</author>
<published>2012-07-16T18:04:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7c78b8de267cc4bc63c4f95bda694be606c3644d'/>
<id>urn:sha1:7c78b8de267cc4bc63c4f95bda694be606c3644d</id>
<content type='text'>
Cc: Chris Boot &lt;bootc@bootc.net&gt;
Cc: Stefan Richter &lt;stefanr@s5r6.in-berlin.de&gt;
Signed-off-by: Roland Dreier &lt;roland@purestorage.com&gt;
</content>
</entry>
</feed>
