Errors in dmesg after removing a btrfs flash disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Invalid
|
Undecided
|
Rolf Leggewie |
Bug Description
When I remove an USB disk formatted with Btrfs, there is an error in 'dmesg', which mentions a kernel bug.
Description: Ubuntu 10.04 LTS
Release: 10.04
[80337.138374] usb 2-2: USB disconnect, address 2
[80338.337003] __ratelimit: 9 callbacks suppressed
[80338.337009] lost page write due to I/O error on sdc1
[80338.337057] end_request: I/O error, dev sdc, sector 131072
[80338.337062] lost page write due to I/O error on sdc1
[80338.337069] btrfs: 1 errors while writing supers
[80338.337107] ------------[ cut here ]------------
[80338.337111] kernel BUG at /build/
[80338.337115] invalid opcode: 0000 [#1] SMP
[80338.337119] last sysfs file: /sys/devices/
[80338.337123] CPU 3
[80338.337126] Modules linked in: usb_storage binfmt_misc snd_hda_
[80338.337188] Pid: 2844, comm: umount Not tainted 2.6.32-21-generic #32-Ubuntu H55M-USB3
[80338.337192] RIP: 0010:[<
[80338.337215] RSP: 0018:ffff880204
[80338.337219] RAX: 000000000000003a RBX: ffff8801f012b068 RCX: 000000000000001e
[80338.337223] RDX: 0000000000000000 RSI: 0000000000000082 RDI: 0000000000000246
[80338.337226] RBP: ffff88020495ddd8 R08: 00000000ffffffff R09: 0000000000000000
[80338.337230] R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
[80338.337233] R13: ffff8801f012b068 R14: 0000000000000000 R15: ffff880209517800
[80338.337238] FS: 00007f3d85c5074
[80338.337242] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[80338.337245] CR2: 00007f42584f06a8 CR3: 00000001dad9f000 CR4: 00000000000006e0
[80338.337249] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[80338.337253] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[80338.337257] Process umount (pid: 2844, threadinfo ffff88020495c000, task ffff8801924e44d0)
[80338.337260] Stack:
[80338.337262] ffff8801f01c0dce ffff8801f012b000 ffff880209517800 0000000000000000
[80338.337268] <0> ffff8801f01c0cb3 0000000100000001 ffff88020495ddd8 ffff880209517800
[80338.337274] <0> ffff880212fbf3f0 ffff88020495de28 ffff880212fbf460 0000000000000001
[80338.337280] Call Trace:
[80338.337299] [<ffffffffa0089
[80338.337318] [<ffffffffa008f
[80338.337328] [<ffffffff81085
[80338.337346] [<ffffffffa008e
[80338.337359] [<ffffffffa006e
[80338.337366] [<ffffffff81197
[80338.337373] [<ffffffff81169
[80338.337378] [<ffffffff81169
[80338.337384] [<ffffffff8115e
[80338.337392] [<ffffffff81013
[80338.337395] Code: 5e 41 5f c9 c3 44 89 f6 48 c7 c7 50 f1 0c a0 31 c0 e8 50 42 4b e1 0f 0b eb fe 44 89 e6 48 c7 c7 50 f1 0c a0 31 c0 e8 3b 42 4b e1 <0f> 0b eb fe 0f 1f 84 00 00 00 00 00 55 48 89 e5 0f 1f 44 00 00
[80338.337441] RIP [<ffffffffa0089
[80338.337458] RSP <ffff88020495dd78>
[80338.337463] ---[ end trace 5dad66d8edaeb8a5 ]---
Does it lock the PC up? It tends to lock mine if I remove the drive before unmounting it. 2.6.34 performs a bit better, but removing the drive still makes the kernel hang eventually, requiring a reboot. It might also be related to https:/ /bugs.launchpad .net/bugs/ 518638 - if you remount the btrfs drive on a different device (eg /dev/sdc), the kernel can't see it because it thinks it's still mounted on the old device (eg /dev/sdb).
I reported this kernel bug at https:/ /bugzilla. kernel. org/show_ bug.cgi? id=15325 a few months ago, but there's been no response so far.