<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/include/target, branch v3.4.96</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/include/target?h=v3.4.96</id>
<link rel='self' href='https://git.amat.us/linux/atom/include/target?h=v3.4.96'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2013-01-21T19:45:24Z</updated>
<entry>
<title>target: Add link_magic for fabric allow_link destination target_items</title>
<updated>2013-01-21T19:45:24Z</updated>
<author>
<name>Nicholas Bellinger</name>
<email>nab@linux-iscsi.org</email>
</author>
<published>2012-12-05T07:43:57Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=92a7389317838f3338466df0c0e3d23ad33cb1f4'/>
<id>urn:sha1:92a7389317838f3338466df0c0e3d23ad33cb1f4</id>
<content type='text'>
commit 0ff8754981261a80f4b77db2536dfea92c2d4539 upstream.

This patch adds [dev,lun]_link_magic value assignment + checks within generic
target_fabric_port_link() and target_fabric_mappedlun_link() code to ensure
destination config_item *target_item sent from configfs_symlink() -&gt;
config_item_operations-&gt;allow_link() is the underlying se_device-&gt;dev_group
and se_lun-&gt;lun_group that we expect to symlink.

Reported-by: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Cc: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
Signed-off-by: CAI Qian &lt;caiqian@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>target: Add generation of LOGICAL BLOCK ADDRESS OUT OF RANGE</title>
<updated>2012-08-09T15:31:26Z</updated>
<author>
<name>Roland Dreier</name>
<email>roland@purestorage.com</email>
</author>
<published>2012-07-16T22:34:21Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=480692b1562b07a4bb8e4d6e49bf7fd2acefbea2'/>
<id>urn:sha1:480692b1562b07a4bb8e4d6e49bf7fd2acefbea2</id>
<content type='text'>
commit e2397c704429025bc6b331a970f699e52f34283e upstream.

Many SCSI commands are defined to return a CHECK CONDITION / ILLEGAL
REQUEST with ASC set to LOGICAL BLOCK ADDRESS OUT OF RANGE if the
initiator sends a command that accesses a too-big LBA.  Add an enum
value and case entries so that target code can return this status.

Signed-off-by: Roland Dreier &lt;roland@purestorage.com&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>target: Use array_zalloc for device_list</title>
<updated>2012-03-16T02:15:51Z</updated>
<author>
<name>Jörn Engel</name>
<email>joern@logfs.org</email>
</author>
<published>2012-03-15T19:05:40Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f2083241f23722207676025abbb45a301d412e69'/>
<id>urn:sha1:f2083241f23722207676025abbb45a301d412e69</id>
<content type='text'>
Turns an order-8 allocation into slab-sized ones, thereby preventing
allocation failures with memory fragmentation.

This likely saves memory as well, as the slab allocator can pack objects
more tightly than the buddy allocator.

(nab: Fix lio-core patch fuzz)

Signed-off-by: Joern Engel &lt;joern@logfs.org&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target: Use array_zalloc for tpg_lun_list</title>
<updated>2012-03-16T02:15:38Z</updated>
<author>
<name>Jörn Engel</name>
<email>joern@logfs.org</email>
</author>
<published>2012-03-15T19:05:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4a5a75f32dcbcd0b2685f74fd4ede26edf8765a9'/>
<id>urn:sha1:4a5a75f32dcbcd0b2685f74fd4ede26edf8765a9</id>
<content type='text'>
Turns an order-10 allocation into slab-sized ones, thereby preventing
allocation failures with memory fragmentation.

This likely saves memory as well, as the slab allocator can pack objects
more tightly than the buddy allocator.

Signed-off-by: Joern Engel &lt;joern@logfs.org&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target: Bump core version to v4.1.0-rc2-ml + fabric versions</title>
<updated>2012-03-10T22:55:17Z</updated>
<author>
<name>Nicholas Bellinger</name>
<email>nab@linux-iscsi.org</email>
</author>
<published>2012-03-10T22:50:19Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9765b1f327951e643a97f43924d1fbeb4e90ffba'/>
<id>urn:sha1:9765b1f327951e643a97f43924d1fbeb4e90ffba</id>
<content type='text'>
Bump core version to v4.1.0-rc2-ml, and for versions from the
following mainline fabric modules:

loopback: v2.1-rc2
tcm_fc: v0.4
iscsi-target: v4.1.0-rc2

Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target: Drop unused legacy target_core_fabric_ops API callers</title>
<updated>2012-03-10T22:42:55Z</updated>
<author>
<name>Nicholas Bellinger</name>
<email>nab@linux-iscsi.org</email>
</author>
<published>2012-02-28T08:22:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c7ec05c82bfd6acf1fd800d628591500805f3179'/>
<id>urn:sha1:c7ec05c82bfd6acf1fd800d628591500805f3179</id>
<content type='text'>
This patch drops the following unused legacy API callers from target_core_fabric.h:

*) TFO-&gt;fall_back_to_erl0()
*) TFO-&gt;stop_session()
*) TFO-&gt;sess_logged_in()
*) TFO-&gt;is_state_remove()

This patch also removes the stub usage in loopback, tcm_fc, iscsi_target,
and ib_srpt fabric modules.

Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target: Convert se_node_acl-&gt;acl_group removal to use -&gt;acl_kref</title>
<updated>2012-03-10T22:42:19Z</updated>
<author>
<name>Nicholas Bellinger</name>
<email>nab@linux-iscsi.org</email>
</author>
<published>2012-03-10T22:36:21Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=337c060701fb3d27d9945bf7af7ba194ae2153a8'/>
<id>urn:sha1:337c060701fb3d27d9945bf7af7ba194ae2153a8</id>
<content type='text'>
This patch converts core_tpg_del_initiator_node_acl() shutdown from configfs
context to use se_node_acl-&gt;acl_kref and -&gt;acl_free_comp in order to wait for
outstanding fabric callbacks to complete via transport_deregister_session()
callbacks before waking -&gt;acl_free_comp from the last -&gt;acl_kref put.

It also changes core_tpg_del_initiator_node_acl() to setup a local sess_list
with target_get_session() + acl-&gt;acl_stop = 1 for active sessions that will
be shutdown, and changes transport_deregister_session_configfs() to check
for -&gt;acl_stop usage.

Cc: Roland Dreier &lt;roland@purestorage.com&gt;
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Joern Engel &lt;joern@logfs.org&gt;
Cc: Andy Grover &lt;agrover@redhat.com&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target: Add se_node_acl-&gt;acl_kref for -&gt;acl_free_comp usage</title>
<updated>2012-03-10T22:42:09Z</updated>
<author>
<name>Nicholas Bellinger</name>
<email>nab@linux-iscsi.org</email>
</author>
<published>2012-03-09T07:45:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=afb999ffc48f5e7ec18e6f8f9e68aa3d0085862d'/>
<id>urn:sha1:afb999ffc48f5e7ec18e6f8f9e68aa3d0085862d</id>
<content type='text'>
This patch adds se_node_acl-&gt;acl_kref for use with -&gt;acl_free_comp
during explict se_node_acl release.  It adds kref_init() during
se_node_acl setup, kref_get() during __transport_register_session()
-&gt; target_put_nacl() with existing transport_deregister_session()
fabric callback usage.

It also moves transport_free_session() to release *se_sess memory
after target_put_nacl() execution in transport_deregister_session()

Cc: Roland Dreier &lt;roland@purestorage.com&gt;
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Joern Engel &lt;joern@logfs.org&gt;
Cc: Andy Grover &lt;agrover@redhat.com&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target: Add se_node_acl-&gt;acl_free_comp for NodeACL release path</title>
<updated>2012-03-10T22:41:59Z</updated>
<author>
<name>Nicholas Bellinger</name>
<email>nab@linux-iscsi.org</email>
</author>
<published>2012-03-10T22:32:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=01468346546a9bcc09035a7e8b71f78af5b7133a'/>
<id>urn:sha1:01468346546a9bcc09035a7e8b71f78af5b7133a</id>
<content type='text'>
Add se_node_acl-&gt;acl_free_comp for NodeACL release path to wait for outstanding
fabric session shutdown to complete in transport_deregister_session() before
finishing NodeACL release from configfs process context.

Also make transport_deregister_session() clear the comp_nacl bit
to skip se_node_acl-&gt;acl_free_comp completion for dynamically generated
NodeACL during fabric session shutdown.

Cc: Roland Dreier &lt;roland@purestorage.com&gt;
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Joern Engel &lt;joern@logfs.org&gt;
Cc: Andy Grover &lt;agrover@redhat.com&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
<entry>
<title>target: Add se_sess-&gt;sess_kref + get/put helpers</title>
<updated>2012-03-10T22:41:53Z</updated>
<author>
<name>Nicholas Bellinger</name>
<email>nab@linux-iscsi.org</email>
</author>
<published>2012-02-27T06:22:10Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=41ac82b668177876d5965d5f60956fb0fbcdb514'/>
<id>urn:sha1:41ac82b668177876d5965d5f60956fb0fbcdb514</id>
<content type='text'>
This patch adds basic se_session-&gt;sess_kref and get/put helpers for fabric
session reference counting.  It sets the initial kref in transport_init_session()
and adds a target_release_session() callback to invoke TFO-&gt;close_session()
for final session shutdown.

Cc: Roland Dreier &lt;roland@purestorage.com&gt;
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Joern Engel &lt;joern@logfs.org&gt;
Cc: Andy Grover &lt;agrover@redhat.com&gt;
Signed-off-by: Nicholas Bellinger &lt;nab@linux-iscsi.org&gt;
</content>
</entry>
</feed>
