Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> smp_call_function_single deadlocks when called from tasklet, smp call lockup when called from tasklet
rtops
 Posted: Nov 12 2013, 08:39 AM
Quote Post


SLF Newbie


Group: Members
Posts: 1
Member No.: 2808
Joined: 12-November 13









The smp_call_function_single lockup occurs when called from tasklet in the following Scientific Linux 6.4
kernel version:
Linux 2.6.32-358.el6.x86_64

We wanted schedule a tasklet on specific core using smp_call_function_single() from another tasklet running
on different core. This is leading to deadlock. Comments on smp_call_function_single() state that it can
lead to deadlock when called with interrupts disabled. Interrupts are not disabled in tasklet function.
Please advise on the solution to eliminate deadlock. Following is the stack trace:
<0>BUG: soft lockup - CPU#0 stuck for 67s! [super_netperf:9393]
<4>Modules linked in: octnic(P)(U) octeon_drv(P)(U) ip6table_filter ip6_tables e
btable_nat ebtables ipt_REJECT xt_CHECKSUM bridge autofs4 8021q garp stp llc sun
rpc ipv6 vhost_net macvtap macvlan tun kvm_intel kvm uinput acpi_pad power_meter
sg ses enclosure dcdbas microcode sb_edac edac_core iTCO_wdt iTCO_vendor_suppor
t shpchp igb ptp pps_core ioatdma dca ext4 mbcache jbd2 sr_mod cdrom sd_mod crc_
t10dif ahci wmi megaraid_sas dm_mirror dm_region_hash dm_log dm_mod [last unload
ed: nf_conntrack]
<4>CPU 0
<4>Modules linked in: xynic(P)(U) my_drv(P)(U) ip6table_filter ip6_tables e
btable_nat ebtables ipt_REJECT xt_CHECKSUM bridge autofs4 8021q garp stp llc sun
rpc ipv6 vhost_net macvtap macvlan tun kvm_intel kvm uinput acpi_pad power_meter
sg ses enclosure dcdbas microcode sb_edac edac_core iTCO_wdt iTCO_vendor_suppor
t shpchp igb ptp pps_core ioatdma dca ext4 mbcache jbd2 sr_mod cdrom sd_mod crc_
t10dif ahci wmi megaraid_sas dm_mirror dm_region_hash dm_log dm_mod [last unload
ed: nf_conntrack]
<4>
<4>Pid: 9393, comm: super_netperf Tainted: P W --------------- 2.6.32
-358.el6.x86_64 #1 Dell Inc. PowerEdge T620/0658N7
<4>RIP: 0010:[<ffffffff810ae622>] [<ffffffff810ae622>] smp_call_function_single
+0x132/0x160
<4>RSP: 0018:ffff880061603de0 EFLAGS: 00000202
<4>RAX: 0000000000011800 RBX: ffff880061603e40 RCX: 0000000000000000
<4>RDX: ffffc90016fac440 RSI: ffff880061611800 RDI: 0000000000000002
<4>RBP: ffffffff8100bb93 R08: ffffffff8160c800 R09: 0000000000000002
<4>R10: 0000000000008000 R11: 0000000000000010 R12: ffff880061603d60
<4>R13: ffffffffa02c74f0 R14: 0000000000000002 R15: ffffffff81516d7b
<4>FS: 00007fdb2f26e700(0000) GS:ffff880061600000(0000) knlGS:0000000000000000
<4>CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
<4>CR2: 00007f53f8402008 CR3: 0000001005812000 CR4: 00000000000407f0
<4>DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
<4>DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
<4>Process super_netperf (pid: 9393, threadinfo ffff880fd44a4000, task ffff880fd
7cab540)
<4>Stack:
<4> 0000000000000043 ffff880061603e28 0000000000000000 0000000000000000
<4><d> 0000000000000000 0000000000000000 0000000000000000 0000000000000002
<4><d> 0000000000000002 ffffc9001700f000 0000000000000000 0000000000000010
<4>Call Trace:
<4> <IRQ>
<4> [<ffffffffa02c7da5>] ? my_droq_hibh+0x95/0x170
<4> [<ffffffff810772a5>] ? tasklet_hi_action+0xe5/0x120
<4> [<ffffffff81076fb1>] ? __do_softirq+0xc1/0x1e0
<4> [<ffffffff8100c1cc>] ? call_softirq+0x1c/0x30
<4> [<ffffffff8100de05>] ? do_softirq+0x65/0xa0
<4> [<ffffffff81076d95>] ? irq_exit+0x85/0x90
<4> [<ffffffff81516c95>] ? do_IRQ+0x75/0xf0
<4> [<ffffffff8100b9d3>] ? ret_from_intr+0x0/0x11
<4> <EOI>
<4> [<ffffffff81071ed8>] ? wait_consider_task+0x248/0xb20
<4> [<ffffffff81071d2d>] ? wait_consider_task+0x9d/0xb20
<4> [<ffffffff810728a6>] ? do_wait+0xf6/0x240
<4> [<ffffffff81072a93>] ? sys_wait4+0xa3/0x100
<4> [<ffffffff81071030>] ? child_wait_callback+0x0/0x70
<4> [<ffffffff810dc565>] ? __audit_syscall_exit+0x265/0x290
<4> [<ffffffff8100b072>] ? system_call_fastpath+0x16/0x1b
PM
^
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll