[Yaffs] yaffs2 possible issue when syncing

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ log.txt (text/plain)
Delete this message
Reply to this message
Author: Mihai Ene
Date:  
To: yaffs
Subject: [Yaffs] yaffs2 possible issue when syncing
Hi,

I am using yaffs on an ARM11MPcore processor running Linux kernel 3.4.

I have found a problem (check attached) when writing/erasing and then
sync (run in parallel).
I am wondering if anyone is aware of this problem?

root@128:/root# cat excersice-fs.sh
#!/bin/sh

MNT=/mnt/mtdblock2

while true; do
         echo "creating file"
         echo "robin" > $MNT/batman
         echo "removing file"
         rm $MNT/batman
done



root@128:/root# cat sync-fs.sh
#!/bin/sh

while true; do
         sync
done
root@128:/root#



Best Regards,
Mihai
[ 593.114796] BUG: soft lockup - CPU#1 stuck for 22s! [sync:10584]
[  593.132843] Modules linked in:
[  593.142015] 
[  593.146483] Pid: 10584, comm:                 sync
[  593.160868] CPU: 1    Not tainted  (3.4.43-WR5.0.1.10_standard #2)
[  593.179461] PC is at yaffs_flush_inodes+0x28/0x4c
[  593.193588] LR is at yaffs_flush_inodes+0x30/0x4c
[  593.207720] pc : [<c010f4d0>]    lr : [<c010f4d8>]    psr: a0000013
[  593.207745] sp : dec5bec8  ip : dec5bec8  fp : dec5bedc
[  593.242181] r10: 00000000  r9 : dec5a000  r8 : 00000000
[  593.257861] r7 : 00000001  r6 : 00000000  r5 : df2f57c0  r4 : df44c2a8
[  593.277454] r3 : df2f5890  r2 : df44c38c  r1 : 00000001  r0 : df3b1c28
d[  593.297046] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  593.318681] Control: 00c5787d  Table: 1ed0800a  DAC: 00000015
[  593.335913] Backtrace: 


[ 593.343842] [<c0011a70>] (dump_backtrace+0x0/0xf8) from [<c02b4230>] (dump_stack+0x18/0x1c)
[ 593.368906] r6:c03bd935 r5:c03cb6b0 r4:dec5be80a r3:df2fdac0
s[ 593.386269] [<c02b4218>] (dump_stack+0x0/0x1c) from [<c000f980>] (show_regs+0x44/0x50)
[ 593.410244] [<c000f93c>] (show_regs+0x0/0x50) from [<c0064010>] (watchdog_timer_fn+0x104/0x170)
[ 593.436348] r4:dec5a000 r3:df2fdac0
[ 593.447173] [<c0063f0c>] (watchdog_timer_fn+0x0/0x170) from [<c003a87c>] (__run_hrtimer.isra.22+0x58/0xd8)
[ 593.476191] [<c003a824>] (__run_hrtimer.isra.22+0x0/0xd8) from [<c003b50c>] (hrtimer_run_queues+0x90/0xc0)
[ 593.505161] r7:c0d2b680 r6:c0d2b6d0 r5:00000089 r4:da1f3d82
[ 593.522276] [<c003b47c>] (hrtimer_run_queues+0x0/0xc0) from [<c002784c>] (run_local_timers+0x14/0x34)
[ 593.549942] r8:00000000 r7:dec5beb4 r6:00000001 r5:00000000 r4:df2fdac0
[ 593.569614] r3:dec5a000
[ 593.577525] [<c0027838>] (run_local_timers+0x0/0x34) from [<c00278a0>] (update_process_times+0x34/0x54)
[ 593.605766] [<c002786c>] (update_process_times+0x0/0x54) from [<c00529f4>] (tick_periodic+0xa8/0xc4)
[ 593.633172] r6:ffffffff r5:00000001 r4:c0d2b180 r3:c03cb6b0
[ 593.650268] [<c005294c>] (tick_periodic+0x0/0xc4) from [<c0052b14>] (tick_handle_periodic+0x2c/0x90)
[ 593.677673] r5:00000001 r4:c0d2b180
[ 593.688469] [<c0052ae8>] (tick_handle_periodic+0x0/0x90) from [<c0012a24>] (ipi_timer+0x34/0x40)
[ 593.714832] r7:dec5beb4 r6:ffffffff r5:00000001 r4:00000000
[ 593.731919] [<c00129f0>] (ipi_timer+0x0/0x40) from [<c0012cdc>] (handle_IPI+0x84/0xfc)
[ 593.755711] [<c0012c58>] (handle_IPI+0x0/0xfc) from [<c0008498>] (gic_handle_irq+0x5c/0x64)
[ 593.780770] r5:dec5be80 r4:e8314100
[ 593.791564] [<c000843c>] (gic_handle_irq+0x0/0x64) from [<c000e020>] (__irq_svc+0x40/0x50)
[ 593.816369] Exception stack(0xdec5be80 to 0xdec5bec8)
[ 593.831555] be80: df3b1c28 00000001 df44c38c df2f5890 df44c2a8 df2f57c0 00000000 00000001
[ 593.856124] bea0: 00000000 dec5a000 00000000 dec5bedc dec5bec8 dec5bec8 c010f4d8 c010f4d0
[ 593.880666] bec0: a0000013 ffffffff
[ 593.891127] r5:a0000013 r4:c010f4d0
[ 593.901937] [<c010f4a8>] (yaffs_flush_inodes+0x0/0x4c) from [<c010f748>] (yaffs_flush_super+0x20/0x44)
[ 593.929862] r5:00000000 r4:df83a180
[ 593.940665] [<c010f728>] (yaffs_flush_super+0x0/0x44) from [<c01110cc>] (yaffs_do_sync_fs+0x98/0xc8)
[ 593.968071] r5:df2f57c0 r4:df83a180
[ 593.978869] [<c0111034>] (yaffs_do_sync_fs+0x0/0xc8) from [<c011111c>] (yaffs_sync_fs+0x20/0x2c)
[ 594.005231] r8:c00c5930 r7:dec5bf84 r6:df2f5800 r5:00000001 r4:df2f57c0
[ 594.024904] r3:c03d7544
[ 594.032836] [<c01110fc>] (yaffs_sync_fs+0x0/0x2c) from [<c00c5914>] (__sync_filesystem+0x80/0x9c)
[ 594.059498] [<c00c5894>] (__sync_filesystem+0x0/0x9c) from [<c00c5950>] (sync_one_sb+0x20/0x24)
[ 594.085599] r5:dfaf57c0 r4:df2f57c0
[ 594.096394] [<c00c5930>] (sync_one_sb+0x0/0x24) from [<c00a2b44>] (iterate_supers+0x7c/0xd8)
[ 594.121750] [<c00a2ac8>] (iterate_supers+0x0/0xd8) from [<c00c5850>] (sync_filesystems+0x20/0x2c)
[ 594.148373] r8:c000e508 r7:00000024 r6:00000001 r5:be8a6e94 r4:00000000
[ 594.168042] r3:c03d3dd0
[ 594.175951] [<c00c5830>] (sync_filesystems+0x0/0x2c) from [<c00c59e0>] (sys_sync+0x28/0x48)
[ 594.201050] [<c00c59b8>] (sys_sync+0x0/0x48) from [<c000e340>] (ret_fast_syscall+0x0/0x30)

[ 630.384763] INFO: rcu_sched self-detected stall on CPU { 1} (t=6001 jiffies)
[ 630.404746] INFO: rcu_sched detected stalls on CPUs/tasks: { 1} (detected by 0, t=6002 jiffies)
[ 630.404862] INFO: Stall ended before state dump start
[ 630.447448] Backtrace:
[ 630.454873] [<c0011a70>] (dump_backtrace+0x0/0xf8) from [<c02b4230>] (dump_stack+0x18/0x1c)
[ 630.479950] r6:c03d33c0 r5:c03c2080 r4:c03d33c0 r3:df2fdac0
[ 630.497068] [<c02b4218>] (dump_stack+0x0/0x1c) from [<c006b514>] (print_cpu_stall+0x5c/0xc4)
[ 630.522435] [<c006b4b8>] (print_cpu_stall+0x0/0xc4) from [<c006b74c>] (check_cpu_stall+0x50/0x84)
[ 630.549069] r7:dec5be94 r6:00008099 r5:00008099 r4:c03d33c0
[ 630.566178] [<c006b6fc>] (check_cpu_stall+0x0/0x84) from [<c006b7a8>] (__rcu_pending+0x28/0x184)
[ 630.592550] r6:c03d33c0 r5:c03d33c0 r4:c0d2b950 r3:c03bd950
[ 630.609661] [<c006b780>] (__rcu_pending+0x0/0x184) from [<c006b930>] (rcu_pending+0x2c/0x7c)
[ 630.634992] r6:c03bd950 r5:00000001 r4:c03cb6b0 r3:c03bd950
[ 630.652105] [<c006b904>] (rcu_pending+0x0/0x7c) from [<c006c1fc>] (rcu_check_callbacks+0x58/0x68)
[ 630.678737] r6:00000001 r5:00000000 r4:00000001 r3:c0d2b9d8
[ 630.695861] [<c006c1a4>] (rcu_check_callbacks+0x0/0x68) from [<c00278ac>] (update_process_times+0x40/0x54)
[ 630.724841] r4:df2fdac0 r3:dec5bda8
[ 630.735666] [<c002786c>] (update_process_times+0x0/0x54) from [<c00529f4>] (tick_periodic+0xa8/0xc4)
[ 630.763081] r6:ffffffff r5:00000001 r4:c0d2b180 r3:c03cb6b0
[ 630.780202] [<c005294c>] (tick_periodic+0x0/0xc4) from [<c0052b14>] (tick_handle_periodic+0x2c/0x90)
[ 630.807616] r5:00000001 r4:c0d2b180
[ 630.818432] [<c0052ae8>] (tick_handle_periodic+0x0/0x90) from [<c0012a24>] (ipi_timer+0x34/0x40)
[ 630.844805] r7:dec5be94 r6:ffffffff r5:00000001 r4:00000000
[ 630.861916] [<c00129f0>] (ipi_timer+0x0/0x40) from [<c0012cdc>] (handle_IPI+0x84/0xfc)
[ 630.885721] [<c0012c58>] (handle_IPI+0x0/0xfc) from [<c0008498>] (gic_handle_irq+0x5c/0x64)
[ 630.910791] r5:dec5be60 r4:e8314100
[ 630.921610] [<c000843c>] (gic_handle_irq+0x0/0x64) from [<c000e020>] (__irq_svc+0x40/0x50)
[ 630.946426] Exception stack(0xdec5be60 to 0xdec5bea8)
[ 630.961629] be60: df3b1c28 00000001 00000000 df2f5890 df44c2a8 df2f57c0 00000000 00000001
[ 630.986216] be80: 00000000 dec5a000 00000000 dec5bedc dec5bec8 dec5beac c010f4d8 c011660c
[ 631.010768] bea0: a0000013 ffffffff
[ 631.021235] r5:a0000013 r4:c011660c
[ 631.032063] [<c010f4a8>] (yaffs_flush_inodes+0x0/0x4c) from [<c010f748>] (yaffs_flush_super+0x20/0x44)
[ 631.059998] r5:00000000 r4:df83a180
[ 631.070821] [<c010f728>] (yaffs_flush_super+0x0/0x44) from [<c01110cc>] (yaffs_do_sync_fs+0x98/0xc8)
[ 631.098234] r5:df2f57c0 r4:df83a180
[ 631.109051] [<c0111034>] (yaffs_do_sync_fs+0x0/0xc8) from [<c011111c>] (yaffs_sync_fs+0x20/0x2c)
[ 631.135424] r8:c00c5930 r7:dec5bf84 r6:df2f5800 r5:00000001 r4:df2f57c0
[ 631.155111] r3:c03d7544
[ 631.163052] [<c01110fc>] (yaffs_sync_fs+0x0/0x2c) from [<c00c5914>] (__sync_filesystem+0x80/0x9c)
[ 631.189731] [<c00c5894>] (__sync_filesystem+0x0/0x9c) from [<c00c5950>] (sync_one_sb+0x20/0x24)
[ 631.215842] r5:dfaf57c0 r4:df2f57c0
[ 631.226654] [<c00c5930>] (sync_one_sb+0x0/0x24) from [<c00a2b44>] (iterate_supers+0x7c/0xd8)
[ 631.252026] [<c00a2ac8>] (iterate_supers+0x0/0xd8) from [<c00c5850>] (sync_filesystems+0x20/0x2c)
[ 631.278660] r8:c000e508 r7:00000024 r6:00000001 r5:be8a6e94 r4:00000000
[ 631.298345] r3:c03d3dd0
[ 631.306271] [<c00c5830>] (sync_filesystems+0x0/0x2c) from [<c00c59e0>] (sys_sync+0x28/0x48)
[ 631.331388] [<c00c59b8>] (sys_sync+0x0/0x48) from [<c000e340>] (ret_fast_syscall+0x0/0x30)