<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/net/9p/protocol.c, branch v3.0.82</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/net/9p/protocol.c?h=v3.0.82</id>
<link rel='self' href='https://git.amat.us/linux/atom/net/9p/protocol.c?h=v3.0.82'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-05-12T22:05:37Z</updated>
<entry>
<title>net/9p/protocol.c: Fix a memory leak</title>
<updated>2011-05-12T22:05:37Z</updated>
<author>
<name>Pedro Scarapicchia Junior</name>
<email>pedrinho.rep51@gmail.com</email>
</author>
<published>2011-05-09T14:10:49Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=1b0bcbcf62884959fa7214eb16c44cff445691c6'/>
<id>urn:sha1:1b0bcbcf62884959fa7214eb16c44cff445691c6</id>
<content type='text'>
When p9pdu_readf() is called with "s" attribute, it allocates a pointer that
will store a string. In p9dirent_read(), this pointer is not being released,
leading to out of memory errors.
This patch releases this pointer after string is copyed to dirent-&gt;d_name.

Signed-off-by: Pedro Scarapicchia Junior &lt;pedro.scarapiccha@br.flextronics.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
</entry>
<entry>
<title>net/9p: nwname should be an unsigned int</title>
<updated>2011-04-15T20:26:15Z</updated>
<author>
<name>Harsh Prateek Bora</name>
<email>harsh@linux.vnet.ibm.com</email>
</author>
<published>2011-03-31T10:19:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b76225e22ac98070325ee2ba89473c1e1360c4cb'/>
<id>urn:sha1:b76225e22ac98070325ee2ba89473c1e1360c4cb</id>
<content type='text'>
Signed-off-by: Harsh Prateek Bora &lt;harsh@linux.vnet.ibm.com&gt;
Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Eric VAn Hensbergen &lt;ericvh@gmail.com&gt;
</content>
</entry>
<entry>
<title>9p: Fix sparse error</title>
<updated>2011-04-15T20:26:14Z</updated>
<author>
<name>Aneesh Kumar K.V</name>
<email>aneesh.kumar@linux.vnet.ibm.com</email>
</author>
<published>2011-03-24T17:44:46Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=bd8c8ade6b6f109bc3dce14a8d12013f27f2a590'/>
<id>urn:sha1:bd8c8ade6b6f109bc3dce14a8d12013f27f2a590</id>
<content type='text'>
Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
</entry>
<entry>
<title>net/9p: Convert the in the 9p rpc call path to GFP_NOFS</title>
<updated>2011-03-22T20:43:35Z</updated>
<author>
<name>Aneesh Kumar K.V</name>
<email>aneesh.kumar@linux.vnet.ibm.com</email>
</author>
<published>2011-03-08T11:09:47Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=eeff66ef6e33925f615d49e6c846263e342ab60e'/>
<id>urn:sha1:eeff66ef6e33925f615d49e6c846263e342ab60e</id>
<content type='text'>
Without this we can cause reclaim allocation in writepage.

[ 3433.448430] =================================
[ 3433.449117] [ INFO: inconsistent lock state ]
[ 3433.449117] 2.6.38-rc5+ #84
[ 3433.449117] ---------------------------------
[ 3433.449117] inconsistent {RECLAIM_FS-ON-W} -&gt; {IN-RECLAIM_FS-R} usage.
[ 3433.449117] kswapd0/505 [HC0[0]:SC0[0]:HE1:SE1] takes:
[ 3433.449117]  (iprune_sem){+++++-}, at: [&lt;ffffffff810ebbab&gt;] shrink_icache_memory+0x45/0x2b1
[ 3433.449117] {RECLAIM_FS-ON-W} state was registered at:
[ 3433.449117]   [&lt;ffffffff8107fe5f&gt;] mark_held_locks+0x52/0x70
[ 3433.449117]   [&lt;ffffffff8107ff02&gt;] lockdep_trace_alloc+0x85/0x9f
[ 3433.449117]   [&lt;ffffffff810d353d&gt;] slab_pre_alloc_hook+0x18/0x3c
[ 3433.449117]   [&lt;ffffffff810d3fd5&gt;] kmem_cache_alloc+0x23/0xa2
[ 3433.449117]   [&lt;ffffffff8127be77&gt;] idr_pre_get+0x2d/0x6f
[ 3433.449117]   [&lt;ffffffff815434eb&gt;] p9_idpool_get+0x30/0xae
[ 3433.449117]   [&lt;ffffffff81540123&gt;] p9_client_rpc+0xd7/0x9b0
[ 3433.449117]   [&lt;ffffffff815427b0&gt;] p9_client_clunk+0x88/0xdb
[ 3433.449117]   [&lt;ffffffff811d56e5&gt;] v9fs_evict_inode+0x3c/0x48
[ 3433.449117]   [&lt;ffffffff810eb511&gt;] evict+0x1f/0x87
[ 3433.449117]   [&lt;ffffffff810eb5c0&gt;] dispose_list+0x47/0xe3
[ 3433.449117]   [&lt;ffffffff810eb8da&gt;] evict_inodes+0x138/0x14f
[ 3433.449117]   [&lt;ffffffff810d90e2&gt;] generic_shutdown_super+0x57/0xe8
[ 3433.449117]   [&lt;ffffffff810d91e8&gt;] kill_anon_super+0x11/0x50
[ 3433.449117]   [&lt;ffffffff811d4951&gt;] v9fs_kill_super+0x49/0xab
[ 3433.449117]   [&lt;ffffffff810d926e&gt;] deactivate_locked_super+0x21/0x46
[ 3433.449117]   [&lt;ffffffff810d9e84&gt;] deactivate_super+0x40/0x44
[ 3433.449117]   [&lt;ffffffff810ef848&gt;] mntput_no_expire+0x100/0x109
[ 3433.449117]   [&lt;ffffffff810f0aeb&gt;] sys_umount+0x2f1/0x31c
[ 3433.449117]   [&lt;ffffffff8102c87b&gt;] system_call_fastpath+0x16/0x1b
[ 3433.449117] irq event stamp: 192941
[ 3433.449117] hardirqs last  enabled at (192941): [&lt;ffffffff81568dcf&gt;] _raw_spin_unlock_irq+0x2b/0x30
[ 3433.449117] hardirqs last disabled at (192940): [&lt;ffffffff810b5f97&gt;] shrink_inactive_list+0x290/0x2f5
[ 3433.449117] softirqs last  enabled at (188470): [&lt;ffffffff8105fd65&gt;] __do_softirq+0x133/0x152
[ 3433.449117] softirqs last disabled at (188455): [&lt;ffffffff8102d7cc&gt;] call_softirq+0x1c/0x28
[ 3433.449117]
[ 3433.449117] other info that might help us debug this:
[ 3433.449117] 1 lock held by kswapd0/505:
[ 3433.449117]  #0:  (shrinker_rwsem){++++..}, at: [&lt;ffffffff810b52e2&gt;] shrink_slab+0x38/0x15f
[ 3433.449117]
[ 3433.449117] stack backtrace:
[ 3433.449117] Pid: 505, comm: kswapd0 Not tainted 2.6.38-rc5+ #84
[ 3433.449117] Call Trace:
[ 3433.449117]  [&lt;ffffffff8107fbce&gt;] ? valid_state+0x17e/0x191
[ 3433.449117]  [&lt;ffffffff81036896&gt;] ? save_stack_trace+0x28/0x45
[ 3433.449117]  [&lt;ffffffff81080426&gt;] ? check_usage_forwards+0x0/0x87
[ 3433.449117]  [&lt;ffffffff8107fcf4&gt;] ? mark_lock+0x113/0x22c
[ 3433.449117]  [&lt;ffffffff8108105f&gt;] ? __lock_acquire+0x37a/0xcf7
[ 3433.449117]  [&lt;ffffffff8107fc0e&gt;] ? mark_lock+0x2d/0x22c
[ 3433.449117]  [&lt;ffffffff81081077&gt;] ? __lock_acquire+0x392/0xcf7
[ 3433.449117]  [&lt;ffffffff810b14d2&gt;] ? determine_dirtyable_memory+0x15/0x28
[ 3433.449117]  [&lt;ffffffff81081a33&gt;] ? lock_acquire+0x57/0x6d
[ 3433.449117]  [&lt;ffffffff810ebbab&gt;] ? shrink_icache_memory+0x45/0x2b1
[ 3433.449117]  [&lt;ffffffff81567d85&gt;] ? down_read+0x47/0x5c
[ 3433.449117]  [&lt;ffffffff810ebbab&gt;] ? shrink_icache_memory+0x45/0x2b1
[ 3433.449117]  [&lt;ffffffff810ebbab&gt;] ? shrink_icache_memory+0x45/0x2b1
[ 3433.449117]  [&lt;ffffffff810b5385&gt;] ? shrink_slab+0xdb/0x15f
[ 3433.449117]  [&lt;ffffffff810b69bc&gt;] ? kswapd+0x574/0x96a
[ 3433.449117]  [&lt;ffffffff810b6448&gt;] ? kswapd+0x0/0x96a
[ 3433.449117]  [&lt;ffffffff810714e2&gt;] ? kthread+0x7d/0x85
[ 3433.449117]  [&lt;ffffffff8102d6d4&gt;] ? kernel_thread_helper+0x4/0x10
[ 3433.449117]  [&lt;ffffffff81569200&gt;] ? restore_args+0x0/0x30
[ 3433.449117]  [&lt;ffffffff81071465&gt;] ? kthread+0x0/0x85
[ 3433.449117]  [&lt;ffffffff8102d6d0&gt;] ? kernel_thread_helper+0x0/0x10

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
</entry>
<entry>
<title>[net/9p] readdir zerocopy changes for 9P2000.L protocol.</title>
<updated>2011-03-15T14:57:35Z</updated>
<author>
<name>Venkateswararao Jujjuri (JV)</name>
<email>jvrao@linux.vnet.ibm.com</email>
</author>
<published>2011-02-17T02:43:20Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2c66523fd290edeea26cbe8cedd0af167d0f7e5f'/>
<id>urn:sha1:2c66523fd290edeea26cbe8cedd0af167d0f7e5f</id>
<content type='text'>
Modify p9_client_readdir() to check the transport preference and act according
If the preference is P9_TRANS_PREF_PAYLOAD_SEP, send the payload
separately instead of putting it directly on PDU.

Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
</entry>
<entry>
<title>[net/9p] Read side zerocopy changes for 9P2000.L protocol.</title>
<updated>2011-03-15T14:57:35Z</updated>
<author>
<name>Venkateswararao Jujjuri (JV)</name>
<email>jvrao@linux.vnet.ibm.com</email>
</author>
<published>2011-01-29T01:05:59Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=bb2f8a55153ec58e66a496224504ac9be919c8f1'/>
<id>urn:sha1:bb2f8a55153ec58e66a496224504ac9be919c8f1</id>
<content type='text'>
Modify p9_client_read() to check the transport preference and act accordingly.
If the preference is P9_TRANS_PREF_PAYLOAD_SEP, send the payload
separately instead of putting it directly on PDU.

Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
</entry>
<entry>
<title>[net/9p] Assign type of transaction to tc-&gt;pdu-&gt;id which is otherwise unsed.</title>
<updated>2011-03-15T14:57:34Z</updated>
<author>
<name>Venkateswararao Jujjuri (JV)</name>
<email>jvrao@linux.vnet.ibm.com</email>
</author>
<published>2011-02-03T01:52:46Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9bb6c10a4ed48aef49a7243a6f798694722cf380'/>
<id>urn:sha1:9bb6c10a4ed48aef49a7243a6f798694722cf380</id>
<content type='text'>
This will be used by the transport layer to determine the out going
request type. Transport layer uses this information to correctly
place the mapped pages in the PDU. Patches following this will make
use of this to achieve zero copy.

Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
</entry>
<entry>
<title>[net/9p] Preparation and helper functions for zero copy</title>
<updated>2011-03-15T14:57:34Z</updated>
<author>
<name>Venkateswararao Jujjuri (JV)</name>
<email>jvrao@linux.vnet.ibm.com</email>
</author>
<published>2011-01-28T22:11:13Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=022cae36551ba805bf82084047945b2901d75f36'/>
<id>urn:sha1:022cae36551ba805bf82084047945b2901d75f36</id>
<content type='text'>
This patch prepares p9_fcall structure for zero copy. Added
fields send the payload buffer information to the transport layer.
In addition it adds a 'private' field for the transport layer to
store mapped/pinned page information so that it can be freed/unpinned
during req_done.

This patch also creates trans_common.[ch] to house helper functions.
It adds the following helper functions.

p9_release_req_pages - Release pages after the transaction.
p9_nr_pages - Return number of pages needed to accomodate the payload.
payload_gup - Translates user buffer into kernel pages.

Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
</entry>
<entry>
<title>net/9p: Use proper data types</title>
<updated>2011-01-11T15:58:07Z</updated>
<author>
<name>M. Mohan Kumar</name>
<email>mohan@in.ibm.com</email>
</author>
<published>2011-01-10T20:23:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=219fd58be62d01e30224c7af919dea77b7e392a8'/>
<id>urn:sha1:219fd58be62d01e30224c7af919dea77b7e392a8</id>
<content type='text'>
Use proper data types for storing the count of the binary blob and
length of a string. Without this patch length calculation of string will
always result in -1 because of comparision between signed and unsigned
integer.

Signed-off-by: M. Mohan Kumar &lt;mohan@in.ibm.com&gt;
Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
</entry>
<entry>
<title>net/9p/protocol.c: Remove duplicated macros.</title>
<updated>2010-12-08T17:56:28Z</updated>
<author>
<name>Thiago Farina</name>
<email>tfransosi@gmail.com</email>
</author>
<published>2010-12-04T15:22:46Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=01b0c5cfb23f19837650aa53495ace6d0fd7d3f8'/>
<id>urn:sha1:01b0c5cfb23f19837650aa53495ace6d0fd7d3f8</id>
<content type='text'>
Use the macros already provided by kernel.h file.

Signed-off-by: Thiago Farina &lt;tfransosi@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
