Re: linux resetting when the usb storage was removed while copying

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




在 2022/3/29 18:32, OGAWA Hirofumi 写道:
qianfan <qianfanguijin@xxxxxxx> writes:

This limits the rate of messages. Can you try if a this patch fixes behavior?
Yes, this patch fixed the problem and watchdog doesn't reset again.

Next is the console log when usb storage disconnected:
[...]

cp: read error: Input/output error
# [  218.253995] FAT-fs (sda1): FAT read failed (blocknr 1130)

'FAT read failed' error message printed only once.

Interesting.
Hm, message should print 10 times, then is suppressed. So this time, the
test may not reproduced. Can your test reproduces the issue reliably?

Right.

I found copy file from usb storage to tmpfs or ubifs has the different behaviors. I got only one error message when copy to tmpfs and got 10 error messages when copy to ubifs. Next is the log when copy to ubifs:

[  313.767873] musb-hdrc musb-hdrc.0: ep2 RX three-strikes error
[  314.594767] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=0s [  314.604930] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 03 92 b6 00 00 f0 00 [  314.612882] blk_update_request: I/O error, dev sda, sector 234166 op 0x0:(READ) flags 0x84700 phys_seg 2 prio class 0 [  314.625613] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=0s [  314.635768] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 03 93 a6 00 00 10 00 [  314.643746] blk_update_request: I/O error, dev sda, sector 234406 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  314.656025] usb 1-1: USB disconnect, device number 4
[  314.674700] blk_update_request: I/O error, dev sda, sector 1405 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  314.685673] FAT-fs (sda1): FAT read failed (blocknr 1343)
[  314.691490] FAT-fs (sda1): FAT read failed (blocknr 1343)
[  314.697294] FAT-fs (sda1): FAT read failed (blocknr 1343)
[  314.702987] FAT-fs (sda1): FAT read failed (blocknr 1343)
[  314.708685] FAT-fs (sda1): FAT read failed (blocknr 1343)
[  314.714377] FAT-fs (sda1): FAT read failed (blocknr 1343)
[  314.720074] FAT-fs (sda1): FAT read failed (blocknr 1343)
[  314.725799] FAT-fs (sda1): FAT read failed (blocknr 1343)
[  314.731480] FAT-fs (sda1): FAT read failed (blocknr 1343)
[  314.737186] FAT-fs (sda1): FAT read failed (blocknr 1343)

My gpio watchdog toggle every 100ms and I sniffer watchdog toggle signal and uart console, watchdog toggle time is 119ms when those message printed, delayed 19ms.

This patch can really solve this problem, thanks.


Well, anyway, the patch looks like working.

Thanks.




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux