<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/net/rxrpc, branch v2.6.38</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6</title>
<updated>2011-03-03T23:43:15+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-03-03T23:43:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=4438a02fc4956f5f61918095708f183f5c63a9d3'/>
<id>4438a02fc4956f5f61918095708f183f5c63a9d3</id>
<content type='text'>
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (42 commits)
  MAINTAINERS: Add Andy Gospodarek as co-maintainer.
  r8169: disable ASPM
  RxRPC: Fix v1 keys
  AF_RXRPC: Handle receiving ACKALL packets
  cnic: Fix lost interrupt on bnx2x
  cnic: Prevent status block race conditions with hardware
  net: dcbnl: check correct ops in dcbnl_ieee_set()
  e1000e: disable broken PHY wakeup for ICH10 LOMs, use MAC wakeup instead
  igb: fix sparse warning
  e1000: fix sparse warning
  netfilter: nf_log: avoid oops in (un)bind with invalid nfproto values
  dccp: fix oops on Reset after close
  ipvs: fix dst_lock locking on dest update
  davinci_emac: Add Carrier Link OK check in Davinci RX Handler
  bnx2x: update driver version to 1.62.00-6
  bnx2x: properly calculate lro_mss
  bnx2x: perform statistics "action" before state transition.
  bnx2x: properly configure coefficients for MinBW algorithm (NPAR mode).
  bnx2x: Fix ethtool -t link test for MF (non-pmf) devices.
  bnx2x: Fix nvram test for single port devices.
  ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (42 commits)
  MAINTAINERS: Add Andy Gospodarek as co-maintainer.
  r8169: disable ASPM
  RxRPC: Fix v1 keys
  AF_RXRPC: Handle receiving ACKALL packets
  cnic: Fix lost interrupt on bnx2x
  cnic: Prevent status block race conditions with hardware
  net: dcbnl: check correct ops in dcbnl_ieee_set()
  e1000e: disable broken PHY wakeup for ICH10 LOMs, use MAC wakeup instead
  igb: fix sparse warning
  e1000: fix sparse warning
  netfilter: nf_log: avoid oops in (un)bind with invalid nfproto values
  dccp: fix oops on Reset after close
  ipvs: fix dst_lock locking on dest update
  davinci_emac: Add Carrier Link OK check in Davinci RX Handler
  bnx2x: update driver version to 1.62.00-6
  bnx2x: properly calculate lro_mss
  bnx2x: perform statistics "action" before state transition.
  bnx2x: properly configure coefficients for MinBW algorithm (NPAR mode).
  bnx2x: Fix ethtool -t link test for MF (non-pmf) devices.
  bnx2x: Fix nvram test for single port devices.
  ...
</pre>
</div>
</content>
</entry>
<entry>
<title>AF_RXRPC: Handle receiving ACKALL packets</title>
<updated>2011-03-03T06:18:52+00:00</updated>
<author>
<name>David Howells</name>
<email>dhowells@redhat.com</email>
</author>
<published>2011-02-28T03:27:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=10003453479ef287a73f8a39593f8f42687ea565'/>
<id>10003453479ef287a73f8a39593f8f42687ea565</id>
<content type='text'>
The OpenAFS server is now sending ACKALL packets, so we need to handle them.
Otherwise we report a protocol error and abort.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The OpenAFS server is now sending ACKALL packets, so we need to handle them.
Otherwise we report a protocol error and abort.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>RxRPC: Allocate tokens with kzalloc to avoid oops in rxrpc_destroy</title>
<updated>2011-02-25T19:12:37+00:00</updated>
<author>
<name>Anton Blanchard</name>
<email>anton@samba.org</email>
</author>
<published>2011-02-25T15:33:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=0a93ea2e897bd793cc0aaaddc397eff32ac8d6fe'/>
<id>0a93ea2e897bd793cc0aaaddc397eff32ac8d6fe</id>
<content type='text'>
With slab poisoning enabled, I see the following oops:

  Unable to handle kernel paging request for data at address 0x6b6b6b6b6b6b6b73
  ...
  NIP [c0000000006bc61c] .rxrpc_destroy+0x44/0x104
  LR [c0000000006bc618] .rxrpc_destroy+0x40/0x104
  Call Trace:
  [c0000000feb2bc00] [c0000000006bc618] .rxrpc_destroy+0x40/0x104 (unreliable)
  [c0000000feb2bc90] [c000000000349b2c] .key_cleanup+0x1a8/0x20c
  [c0000000feb2bd40] [c0000000000a2920] .process_one_work+0x2f4/0x4d0
  [c0000000feb2be00] [c0000000000a2d50] .worker_thread+0x254/0x468
  [c0000000feb2bec0] [c0000000000a868c] .kthread+0xbc/0xc8
  [c0000000feb2bf90] [c000000000020e00] .kernel_thread+0x54/0x70

We aren't initialising token-&gt;next, but the code in destroy_context relies
on the list being NULL terminated. Use kzalloc to zero out all the fields.

Signed-off-by: Anton Blanchard &lt;anton@samba.org&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With slab poisoning enabled, I see the following oops:

  Unable to handle kernel paging request for data at address 0x6b6b6b6b6b6b6b73
  ...
  NIP [c0000000006bc61c] .rxrpc_destroy+0x44/0x104
  LR [c0000000006bc618] .rxrpc_destroy+0x40/0x104
  Call Trace:
  [c0000000feb2bc00] [c0000000006bc618] .rxrpc_destroy+0x40/0x104 (unreliable)
  [c0000000feb2bc90] [c000000000349b2c] .key_cleanup+0x1a8/0x20c
  [c0000000feb2bd40] [c0000000000a2920] .process_one_work+0x2f4/0x4d0
  [c0000000feb2be00] [c0000000000a2d50] .worker_thread+0x254/0x468
  [c0000000feb2bec0] [c0000000000a868c] .kthread+0xbc/0xc8
  [c0000000feb2bf90] [c000000000020e00] .kernel_thread+0x54/0x70

We aren't initialising token-&gt;next, but the code in destroy_context relies
on the list being NULL terminated. Use kzalloc to zero out all the fields.

Signed-off-by: Anton Blanchard &lt;anton@samba.org&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rxrpc: rxrpc_workqueue isn't used during memory reclaim</title>
<updated>2011-01-14T17:25:11+00:00</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2011-01-14T15:56:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=e1fcc7e2a719d139322fab3f47cfbd4340cf3d82'/>
<id>e1fcc7e2a719d139322fab3f47cfbd4340cf3d82</id>
<content type='text'>
rxrpc_workqueue isn't depended upon while reclaiming memory.  Convert
to alloc_workqueue() without WQ_MEM_RECLAIM.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Cc: linux-afs@lists.infradead.org
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rxrpc_workqueue isn't depended upon while reclaiming memory.  Convert
to alloc_workqueue() without WQ_MEM_RECLAIM.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Cc: linux-afs@lists.infradead.org
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Net: rxrpc: Makefile: Remove deprecated kbuild goal definitions</title>
<updated>2010-11-22T16:16:15+00:00</updated>
<author>
<name>Tracey Dent</name>
<email>tdent48227@gmail.com</email>
</author>
<published>2010-11-21T15:03:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=9ed05ad3c0629f434b18d20c51162f9bbb4f5d31'/>
<id>9ed05ad3c0629f434b18d20c51162f9bbb4f5d31</id>
<content type='text'>
Changed Makefile to use &lt;modules&gt;-y instead of &lt;modules&gt;-objs
because -objs is deprecated and not mentioned in
Documentation/kbuild/makefiles.txt.

Signed-off-by: Tracey Dent &lt;tdent48227@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changed Makefile to use &lt;modules&gt;-y instead of &lt;modules&gt;-objs
because -objs is deprecated and not mentioned in
Documentation/kbuild/makefiles.txt.

Signed-off-by: Tracey Dent &lt;tdent48227@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: use the macros defined for the members of flowi</title>
<updated>2010-11-17T20:27:45+00:00</updated>
<author>
<name>Changli Gao</name>
<email>xiaosuo@gmail.com</email>
</author>
<published>2010-11-12T18:43:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=5811662b15db018c740c57d037523683fd3e6123'/>
<id>5811662b15db018c740c57d037523683fd3e6123</id>
<content type='text'>
Use the macros defined for the members of flowi to clean the code up.

Signed-off-by: Changli Gao &lt;xiaosuo@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the macros defined for the members of flowi to clean the code up.

Signed-off-by: Changli Gao &lt;xiaosuo@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a dummy printk function for the maintenance of unused printks</title>
<updated>2010-08-12T16:51:35+00:00</updated>
<author>
<name>David Howells</name>
<email>dhowells@redhat.com</email>
</author>
<published>2010-08-12T15:54:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=12fdff3fc2483f906ae6404a6e8dcf2550310b6f'/>
<id>12fdff3fc2483f906ae6404a6e8dcf2550310b6f</id>
<content type='text'>
Add a dummy printk function for the maintenance of unused printks through gcc
format checking, and also so that side-effect checking is maintained too.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a dummy printk function for the maintenance of unused printks through gcc
format checking, and also so that side-effect checking is maintained too.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>RxRPC: Fix a potential deadlock between the call resend_timer and state_lock</title>
<updated>2010-08-05T04:53:16+00:00</updated>
<author>
<name>David Howells</name>
<email>dhowells@redhat.com</email>
</author>
<published>2010-08-04T02:34:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=3b5bac2bdea1de832bdd8e2c904ab7c9479ff9ed'/>
<id>3b5bac2bdea1de832bdd8e2c904ab7c9479ff9ed</id>
<content type='text'>
RxRPC can potentially deadlock as rxrpc_resend_time_expired() wants to get
call-&gt;state_lock so that it can alter the state of an RxRPC call.  However, its
caller (call_timer_fn()) has an apparent lock on the timer struct.

The problem is that rxrpc_resend_time_expired() isn't permitted to lock
call-&gt;state_lock as this could cause a deadlock against rxrpc_send_abort() as
that takes state_lock and then attempts to delete the resend timer by calling
del_timer_sync().

The deadlock can occur because del_timer_sync() will sit there forever waiting
for rxrpc_resend_time_expired() to return, but the latter may then wait for
call-&gt;state_lock, which rxrpc_send_abort() holds around del_timer_sync()...

This leads to a warning appearing in the kernel log that looks something like
the attached.

It should be sufficient to simply dispense with the locks.  It doesn't matter
if we set the resend timer expired event bit and queue the event processor
whilst we're changing state to one where the resend timer is irrelevant as the
event can just be ignored by the processor thereafter.

=======================================================
[ INFO: possible circular locking dependency detected ]
2.6.35-rc3-cachefs+ #115
-------------------------------------------------------
swapper/0 is trying to acquire lock:
 (&amp;call-&gt;state_lock){++--..}, at: [&lt;ffffffffa00200d4&gt;] rxrpc_resend_time_expired+0x56/0x96 [af_rxrpc]

but task is already holding lock:
 (&amp;call-&gt;resend_timer){+.-...}, at: [&lt;ffffffff8103b675&gt;] run_timer_softirq+0x182/0x2a5

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

-&gt; #1 (&amp;call-&gt;resend_timer){+.-...}:
       [&lt;ffffffff810560bc&gt;] __lock_acquire+0x889/0x8fa
       [&lt;ffffffff81056184&gt;] lock_acquire+0x57/0x6d
       [&lt;ffffffff8103bb9c&gt;] del_timer_sync+0x3c/0x86
       [&lt;ffffffffa002bb7a&gt;] rxrpc_send_abort+0x50/0x97 [af_rxrpc]
       [&lt;ffffffffa002bdd9&gt;] rxrpc_kernel_abort_call+0xa1/0xdd [af_rxrpc]
       [&lt;ffffffffa0061588&gt;] afs_deliver_to_call+0x129/0x368 [kafs]
       [&lt;ffffffffa006181b&gt;] afs_process_async_call+0x54/0xff [kafs]
       [&lt;ffffffff8104261d&gt;] worker_thread+0x1ef/0x2e2
       [&lt;ffffffff81045f47&gt;] kthread+0x7a/0x82
       [&lt;ffffffff81002cd4&gt;] kernel_thread_helper+0x4/0x10

-&gt; #0 (&amp;call-&gt;state_lock){++--..}:
       [&lt;ffffffff81055237&gt;] validate_chain+0x727/0xd23
       [&lt;ffffffff810560bc&gt;] __lock_acquire+0x889/0x8fa
       [&lt;ffffffff81056184&gt;] lock_acquire+0x57/0x6d
       [&lt;ffffffff813e6b69&gt;] _raw_read_lock_bh+0x34/0x43
       [&lt;ffffffffa00200d4&gt;] rxrpc_resend_time_expired+0x56/0x96 [af_rxrpc]
       [&lt;ffffffff8103b6e6&gt;] run_timer_softirq+0x1f3/0x2a5
       [&lt;ffffffff81036828&gt;] __do_softirq+0xa2/0x13e
       [&lt;ffffffff81002dcc&gt;] call_softirq+0x1c/0x28
       [&lt;ffffffff810049f0&gt;] do_softirq+0x38/0x80
       [&lt;ffffffff810361a2&gt;] irq_exit+0x45/0x47
       [&lt;ffffffff81018fb3&gt;] smp_apic_timer_interrupt+0x88/0x96
       [&lt;ffffffff81002893&gt;] apic_timer_interrupt+0x13/0x20
       [&lt;ffffffff810011ac&gt;] cpu_idle+0x4d/0x83
       [&lt;ffffffff813e06f3&gt;] start_secondary+0x1bd/0x1c1

other info that might help us debug this:

1 lock held by swapper/0:
 #0:  (&amp;call-&gt;resend_timer){+.-...}, at: [&lt;ffffffff8103b675&gt;] run_timer_softirq+0x182/0x2a5

stack backtrace:
Pid: 0, comm: swapper Not tainted 2.6.35-rc3-cachefs+ #115
Call Trace:
 &lt;IRQ&gt;  [&lt;ffffffff81054414&gt;] print_circular_bug+0xae/0xbd
 [&lt;ffffffff81055237&gt;] validate_chain+0x727/0xd23
 [&lt;ffffffff810560bc&gt;] __lock_acquire+0x889/0x8fa
 [&lt;ffffffff810539a7&gt;] ? mark_lock+0x42f/0x51f
 [&lt;ffffffff81056184&gt;] lock_acquire+0x57/0x6d
 [&lt;ffffffffa00200d4&gt;] ? rxrpc_resend_time_expired+0x56/0x96 [af_rxrpc]
 [&lt;ffffffff813e6b69&gt;] _raw_read_lock_bh+0x34/0x43
 [&lt;ffffffffa00200d4&gt;] ? rxrpc_resend_time_expired+0x56/0x96 [af_rxrpc]
 [&lt;ffffffffa00200d4&gt;] rxrpc_resend_time_expired+0x56/0x96 [af_rxrpc]
 [&lt;ffffffff8103b6e6&gt;] run_timer_softirq+0x1f3/0x2a5
 [&lt;ffffffff8103b675&gt;] ? run_timer_softirq+0x182/0x2a5
 [&lt;ffffffffa002007e&gt;] ? rxrpc_resend_time_expired+0x0/0x96 [af_rxrpc]
 [&lt;ffffffff810367ef&gt;] ? __do_softirq+0x69/0x13e
 [&lt;ffffffff81036828&gt;] __do_softirq+0xa2/0x13e
 [&lt;ffffffff81002dcc&gt;] call_softirq+0x1c/0x28
 [&lt;ffffffff810049f0&gt;] do_softirq+0x38/0x80
 [&lt;ffffffff810361a2&gt;] irq_exit+0x45/0x47
 [&lt;ffffffff81018fb3&gt;] smp_apic_timer_interrupt+0x88/0x96
 [&lt;ffffffff81002893&gt;] apic_timer_interrupt+0x13/0x20
 &lt;EOI&gt;  [&lt;ffffffff81049de1&gt;] ? __atomic_notifier_call_chain+0x0/0x86
 [&lt;ffffffff8100955b&gt;] ? mwait_idle+0x6e/0x78
 [&lt;ffffffff81009552&gt;] ? mwait_idle+0x65/0x78
 [&lt;ffffffff810011ac&gt;] cpu_idle+0x4d/0x83
 [&lt;ffffffff813e06f3&gt;] start_secondary+0x1bd/0x1c1

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
RxRPC can potentially deadlock as rxrpc_resend_time_expired() wants to get
call-&gt;state_lock so that it can alter the state of an RxRPC call.  However, its
caller (call_timer_fn()) has an apparent lock on the timer struct.

The problem is that rxrpc_resend_time_expired() isn't permitted to lock
call-&gt;state_lock as this could cause a deadlock against rxrpc_send_abort() as
that takes state_lock and then attempts to delete the resend timer by calling
del_timer_sync().

The deadlock can occur because del_timer_sync() will sit there forever waiting
for rxrpc_resend_time_expired() to return, but the latter may then wait for
call-&gt;state_lock, which rxrpc_send_abort() holds around del_timer_sync()...

This leads to a warning appearing in the kernel log that looks something like
the attached.

It should be sufficient to simply dispense with the locks.  It doesn't matter
if we set the resend timer expired event bit and queue the event processor
whilst we're changing state to one where the resend timer is irrelevant as the
event can just be ignored by the processor thereafter.

=======================================================
[ INFO: possible circular locking dependency detected ]
2.6.35-rc3-cachefs+ #115
-------------------------------------------------------
swapper/0 is trying to acquire lock:
 (&amp;call-&gt;state_lock){++--..}, at: [&lt;ffffffffa00200d4&gt;] rxrpc_resend_time_expired+0x56/0x96 [af_rxrpc]

but task is already holding lock:
 (&amp;call-&gt;resend_timer){+.-...}, at: [&lt;ffffffff8103b675&gt;] run_timer_softirq+0x182/0x2a5

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

-&gt; #1 (&amp;call-&gt;resend_timer){+.-...}:
       [&lt;ffffffff810560bc&gt;] __lock_acquire+0x889/0x8fa
       [&lt;ffffffff81056184&gt;] lock_acquire+0x57/0x6d
       [&lt;ffffffff8103bb9c&gt;] del_timer_sync+0x3c/0x86
       [&lt;ffffffffa002bb7a&gt;] rxrpc_send_abort+0x50/0x97 [af_rxrpc]
       [&lt;ffffffffa002bdd9&gt;] rxrpc_kernel_abort_call+0xa1/0xdd [af_rxrpc]
       [&lt;ffffffffa0061588&gt;] afs_deliver_to_call+0x129/0x368 [kafs]
       [&lt;ffffffffa006181b&gt;] afs_process_async_call+0x54/0xff [kafs]
       [&lt;ffffffff8104261d&gt;] worker_thread+0x1ef/0x2e2
       [&lt;ffffffff81045f47&gt;] kthread+0x7a/0x82
       [&lt;ffffffff81002cd4&gt;] kernel_thread_helper+0x4/0x10

-&gt; #0 (&amp;call-&gt;state_lock){++--..}:
       [&lt;ffffffff81055237&gt;] validate_chain+0x727/0xd23
       [&lt;ffffffff810560bc&gt;] __lock_acquire+0x889/0x8fa
       [&lt;ffffffff81056184&gt;] lock_acquire+0x57/0x6d
       [&lt;ffffffff813e6b69&gt;] _raw_read_lock_bh+0x34/0x43
       [&lt;ffffffffa00200d4&gt;] rxrpc_resend_time_expired+0x56/0x96 [af_rxrpc]
       [&lt;ffffffff8103b6e6&gt;] run_timer_softirq+0x1f3/0x2a5
       [&lt;ffffffff81036828&gt;] __do_softirq+0xa2/0x13e
       [&lt;ffffffff81002dcc&gt;] call_softirq+0x1c/0x28
       [&lt;ffffffff810049f0&gt;] do_softirq+0x38/0x80
       [&lt;ffffffff810361a2&gt;] irq_exit+0x45/0x47
       [&lt;ffffffff81018fb3&gt;] smp_apic_timer_interrupt+0x88/0x96
       [&lt;ffffffff81002893&gt;] apic_timer_interrupt+0x13/0x20
       [&lt;ffffffff810011ac&gt;] cpu_idle+0x4d/0x83
       [&lt;ffffffff813e06f3&gt;] start_secondary+0x1bd/0x1c1

other info that might help us debug this:

1 lock held by swapper/0:
 #0:  (&amp;call-&gt;resend_timer){+.-...}, at: [&lt;ffffffff8103b675&gt;] run_timer_softirq+0x182/0x2a5

stack backtrace:
Pid: 0, comm: swapper Not tainted 2.6.35-rc3-cachefs+ #115
Call Trace:
 &lt;IRQ&gt;  [&lt;ffffffff81054414&gt;] print_circular_bug+0xae/0xbd
 [&lt;ffffffff81055237&gt;] validate_chain+0x727/0xd23
 [&lt;ffffffff810560bc&gt;] __lock_acquire+0x889/0x8fa
 [&lt;ffffffff810539a7&gt;] ? mark_lock+0x42f/0x51f
 [&lt;ffffffff81056184&gt;] lock_acquire+0x57/0x6d
 [&lt;ffffffffa00200d4&gt;] ? rxrpc_resend_time_expired+0x56/0x96 [af_rxrpc]
 [&lt;ffffffff813e6b69&gt;] _raw_read_lock_bh+0x34/0x43
 [&lt;ffffffffa00200d4&gt;] ? rxrpc_resend_time_expired+0x56/0x96 [af_rxrpc]
 [&lt;ffffffffa00200d4&gt;] rxrpc_resend_time_expired+0x56/0x96 [af_rxrpc]
 [&lt;ffffffff8103b6e6&gt;] run_timer_softirq+0x1f3/0x2a5
 [&lt;ffffffff8103b675&gt;] ? run_timer_softirq+0x182/0x2a5
 [&lt;ffffffffa002007e&gt;] ? rxrpc_resend_time_expired+0x0/0x96 [af_rxrpc]
 [&lt;ffffffff810367ef&gt;] ? __do_softirq+0x69/0x13e
 [&lt;ffffffff81036828&gt;] __do_softirq+0xa2/0x13e
 [&lt;ffffffff81002dcc&gt;] call_softirq+0x1c/0x28
 [&lt;ffffffff810049f0&gt;] do_softirq+0x38/0x80
 [&lt;ffffffff810361a2&gt;] irq_exit+0x45/0x47
 [&lt;ffffffff81018fb3&gt;] smp_apic_timer_interrupt+0x88/0x96
 [&lt;ffffffff81002893&gt;] apic_timer_interrupt+0x13/0x20
 &lt;EOI&gt;  [&lt;ffffffff81049de1&gt;] ? __atomic_notifier_call_chain+0x0/0x86
 [&lt;ffffffff8100955b&gt;] ? mwait_idle+0x6e/0x78
 [&lt;ffffffff81009552&gt;] ? mwait_idle+0x65/0x78
 [&lt;ffffffff810011ac&gt;] cpu_idle+0x4d/0x83
 [&lt;ffffffff813e06f3&gt;] start_secondary+0x1bd/0x1c1

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net-next: remove useless union keyword</title>
<updated>2010-06-11T06:31:35+00:00</updated>
<author>
<name>Changli Gao</name>
<email>xiaosuo@gmail.com</email>
</author>
<published>2010-06-11T06:31:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=d8d1f30b95a635dbd610dcc5eb641aca8f4768cf'/>
<id>d8d1f30b95a635dbd610dcc5eb641aca8f4768cf</id>
<content type='text'>
remove useless union keyword in rtable, rt6_info and dn_route.

Since there is only one member in a union, the union keyword isn't useful.

Signed-off-by: Changli Gao &lt;xiaosuo@gmail.com&gt;
Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
remove useless union keyword in rtable, rt6_info and dn_route.

Since there is only one member in a union, the union keyword isn't useful.

Signed-off-by: Changli Gao &lt;xiaosuo@gmail.com&gt;
Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: sock_def_readable() and friends RCU conversion</title>
<updated>2010-05-01T22:00:15+00:00</updated>
<author>
<name>Eric Dumazet</name>
<email>eric.dumazet@gmail.com</email>
</author>
<published>2010-04-29T11:01:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=43815482370c510c569fd18edb57afcb0fa8cab6'/>
<id>43815482370c510c569fd18edb57afcb0fa8cab6</id>
<content type='text'>
sk_callback_lock rwlock actually protects sk-&gt;sk_sleep pointer, so we
need two atomic operations (and associated dirtying) per incoming
packet.

RCU conversion is pretty much needed :

1) Add a new structure, called "struct socket_wq" to hold all fields
that will need rcu_read_lock() protection (currently: a
wait_queue_head_t and a struct fasync_struct pointer).

[Future patch will add a list anchor for wakeup coalescing]

2) Attach one of such structure to each "struct socket" created in
sock_alloc_inode().

3) Respect RCU grace period when freeing a "struct socket_wq"

4) Change sk_sleep pointer in "struct sock" by sk_wq, pointer to "struct
socket_wq"

5) Change sk_sleep() function to use new sk-&gt;sk_wq instead of
sk-&gt;sk_sleep

6) Change sk_has_sleeper() to wq_has_sleeper() that must be used inside
a rcu_read_lock() section.

7) Change all sk_has_sleeper() callers to :
  - Use rcu_read_lock() instead of read_lock(&amp;sk-&gt;sk_callback_lock)
  - Use wq_has_sleeper() to eventually wakeup tasks.
  - Use rcu_read_unlock() instead of read_unlock(&amp;sk-&gt;sk_callback_lock)

8) sock_wake_async() is modified to use rcu protection as well.

9) Exceptions :
  macvtap, drivers/net/tun.c, af_unix use integrated "struct socket_wq"
instead of dynamically allocated ones. They dont need rcu freeing.

Some cleanups or followups are probably needed, (possible
sk_callback_lock conversion to a spinlock for example...).

Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
sk_callback_lock rwlock actually protects sk-&gt;sk_sleep pointer, so we
need two atomic operations (and associated dirtying) per incoming
packet.

RCU conversion is pretty much needed :

1) Add a new structure, called "struct socket_wq" to hold all fields
that will need rcu_read_lock() protection (currently: a
wait_queue_head_t and a struct fasync_struct pointer).

[Future patch will add a list anchor for wakeup coalescing]

2) Attach one of such structure to each "struct socket" created in
sock_alloc_inode().

3) Respect RCU grace period when freeing a "struct socket_wq"

4) Change sk_sleep pointer in "struct sock" by sk_wq, pointer to "struct
socket_wq"

5) Change sk_sleep() function to use new sk-&gt;sk_wq instead of
sk-&gt;sk_sleep

6) Change sk_has_sleeper() to wq_has_sleeper() that must be used inside
a rcu_read_lock() section.

7) Change all sk_has_sleeper() callers to :
  - Use rcu_read_lock() instead of read_lock(&amp;sk-&gt;sk_callback_lock)
  - Use wq_has_sleeper() to eventually wakeup tasks.
  - Use rcu_read_unlock() instead of read_unlock(&amp;sk-&gt;sk_callback_lock)

8) sock_wake_async() is modified to use rcu protection as well.

9) Exceptions :
  macvtap, drivers/net/tun.c, af_unix use integrated "struct socket_wq"
instead of dynamically allocated ones. They dont need rcu freeing.

Some cleanups or followups are probably needed, (possible
sk_callback_lock conversion to a spinlock for example...).

Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
