Reiser4 Oops
Subsystems (2)
Wanted to try reiser4. I have compiled a kernel with reiser4, format the partition and began to copy the folder /home.
After a short time the screen goes black and there was one console with the error output. After switching to other tty and back up continued. dmesg output copied to the pastebin (http://pastebin.com/XyDKWJ8J).
This was repeated several times and the computer hangs perfectly still.
I have ubuntu 10.10 on a laptop Acer Aspire 7720z.
[Rus]
Хотел попробовать reiser4. Я собрал ядро с поддержкой reiser4, отформатировал раздел и начал копировать папку /home.
Через небольшое время экран стал черным и осталась одна консоль с выводом ошибок. После переключения на другие tty и обратно, копирование продолжилось. Вывод dmesg скопировал на pastebin (http://pastebin.com/XyDKWJ8J).
Так повторилось несколько раз и компьютер намертво завис.
У меня ubuntu 10.10 на ноутбуке Acer Aspire 7720z.
[ 160.348668] reiser4: sda4: found disk format 4.0.0. [ 246.776687] lo: Disabled Privacy Extensions [ 259.301354] exe (2663): /proc/2663/oom_adj is deprecated, please use /proc/2663/oom_score_adj instead. [ 278.060537] BUG: unable to handle kernel paging request at 4b1b5d0b [ 278.060621] IP: [<c0318767>] jbd2__journal_start+0x37/0xe0 [ 278.060680] *pde = 00000000 [ 278.060714] Oops: 0000 [#1] SMP [ 278.060754] last sysfs file: /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq [ 278.060821] Modules linked in: binfmt_misc parport_pc ppdev snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi arc4 snd_rawmidi ath5k mac80211 i915 drm_kms_helper joydev snd_seq_midi_event ath cfg80211 drm snd_seq r852 sm_common snd_timer nand nand_ids i2c_algo_bit nand_ecc video mtd psmouse uvcvideo intel_agp agpgart videodev lp snd_seq_device v4l1_compat serio_raw shpchp output snd soundcore snd_page_alloc parport usbhid hid ahci firewire_ohci btrfs tg3 sdhci_pci firewire_core sdhci crc_itu_t led_class libahci crc32c libcrc32c [ 278.061486] [ 278.061508] Pid: 2505, comm: ent:sda4! Not tainted 2.6.36.reiser #3 Poyang /Aspire 7720Z [ 278.061591] EIP: 0060:[<c0318767>] EFLAGS: 00010286 CPU: 0 [ 278.061644] EIP is at jbd2__journal_start+0x37/0xe0 [ 278.061687] EAX: 4b1b5d0b EBX: f25b7eb8 ECX: 00000050 EDX: 00000008 [ 278.061743] ESI: f6a08800 EDI: f5390000 EBP: f25b7d54 ESP: f25b7d40 [ 278.061797] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 [ 278.061846] Process ent:sda4! (pid: 2505, ti=f25b6000 task=f5390000 task.ti=f25b6000) [ 278.061914] Stack: [ 278.061937] 00000000 00000008 f69ffe00 00000001 00000000 f25b7d5c c0318822 f25b7d98 [ 278.062033] <0> c02f5858 00000000 00000000 00000000 00000000 00000008 f25b7d90 c02e0957 [ 278.062136] <0> 00000218 f7227ddc 00000001 f7227ddc 00000001 00000000 f25b7e38 c02e47e3 [ 278.062243] Call Trace: [ 278.062271] [<c0318822>] ? jbd2_journal_start+0x12/0x20 [ 278.062322] [<c02f5858>] ? ext4_journal_start_sb+0xc8/0x100 [ 278.062377] [<c02e0957>] ? ext4_meta_trans_blocks+0x67/0xc0 [ 278.062431] [<c02e47e3>] ? ext4_da_writepages+0x203/0x560 [ 278.062484] [<c060fccd>] ? _raw_spin_lock+0xd/0x10 [ 278.062530] [<c0281ca2>] ? flush_some_atom+0x312/0x540 [ 278.062578] [<c02a4cdd>] ? writepages_cryptcompress+0x19d/0x220 [ 278.062636] [<c02913a8>] ? reiser4_writeout+0xa8/0x1a0 [ 278.062684] [<c022c186>] ? iput+0x36/0x270 [ 278.062724] [<c02367e4>] ? generic_writeback_sb_inodes+0xe4/0x150 [ 278.062782] [<c01dfaac>] ? do_writepages+0x1c/0x40 [ 278.062826] [<c0236125>] ? writeback_single_inode+0x85/0x250 [ 278.062877] [<c060fccd>] ? _raw_spin_lock+0xd/0x10 [ 278.062921] [<c028db64>] ? reiser4_writeback_inodes+0xa4/0x130 [ 278.062974] [<c02367b1>] ? generic_writeback_sb_inodes+0xb1/0x150 [ 278.063031] [<c0236c6b>] ? writeback_inodes_wb+0x10b/0x150 [ 278.063082] [<c0291d06>] ? entd_flush+0xa6/0xe0 [ 278.063127] [<c0291d40>] ? entd+0x0/0x240 [ 278.063166] [<c0291e51>] ? entd+0x111/0x240 [ 278.063208] [<c0165fd0>] ? autoremove_wake_function+0x0/0x50 [ 278.064008] [<c0291d40>] ? entd+0x0/0x240 [ 278.067417] [<c0165ba4>] ? kthread+0x74/0x80 [ 278.067417] [<c0165b30>] ? kthread+0x0/0x80 [ 278.067417] [<c010357e>] ? kernel_thread_helper+0x6/0x10 [ 278.067417] Code: 89 7d fc 0f 1f 44 00 00 bb e2 ff ff ff 64 8b 3d ac b4 90 c0 89 c6 85 f6 89 55 f0 8b 87 14 04 00 00 74 14 85 c0 89 c3 74 23 8b 00 <3b> 30 0f 85 93 00 00 00 83 43 08 01 89 d8 8b 75 f8 8b 5d f4 8b [ 278.067417] EIP: [<c0318767>] jbd2__journal_start+0x37/0xe0 SS:ESP 0068:f25b7d40 [ 278.067417] CR2: 000000004b1b5d0b [ 278.115363] ---[ end trace fca38291408e395f ]--- [ 328.901037] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
Quoted 8 lines · Андрей Колченко
Wanted to try reiser4. I have compiled a kernel with reiser4, format the partition and began to copy the folder /home.
After a short time the screen goes black and there was one console with the error output. After switching to other tty and back up continued. dmesg output copied to the pastebin
(http://pastebin.com/XyDKWJ8J).
This was repeated several times and the computer hangs perfectly still. I have ubuntu 10.10 on a laptop Acer Aspire 7720z.
Yup, I see the bug:
instead of writing pages reiser4 kicks ext4 to do it, and, I guess, doesn't clear journal_info (this is why ext4 oopses).
[ 278.062271] [<c0318822>] ? jbd2_journal_start+0x12/0x20 [ 278.062322] [<c02f5858>] ? ext4_journal_start_sb+0xc8/0x100 [ 278.062377] [<c02e0957>] ? ext4_meta_trans_blocks+0x67/0xc0 [ 278.062431] [<c02e47e3>] ? ext4_da_writepages+0x203/0x560 [ 278.062484] [<c060fccd>] ? _raw_spin_lock+0xd/0x10 [ 278.062530] [<c0281ca2>] ? flush_some_atom+0x312/0x540 [ 278.062578] [<c02a4cdd>] ? writepages_cryptcompress+0x19d/0x220 [ 278.062636] [<c02913a8>] ? reiser4_writeout+0xa8/0x1a0 [ 278.062684] [<c022c186>] ? iput+0x36/0x270 [ 278.062724] [<c02367e4>] ? generic_writeback_sb_inodes+0xe4/0x150 [ 278.062782] [<c01dfaac>] ? do_writepages+0x1c/0x40 [ 278.062826] [<c0236125>] ? writeback_single_inode+0x85/0x250 [ 278.062877] [<c060fccd>] ? _raw_spin_lock+0xd/0x10 [ 278.062921] [<c028db64>] ? reiser4_writeback_inodes+0xa4/0x130 [ 278.062974] [<c02367b1>] ? generic_writeback_sb_inodes+0xb1/0x150 [ 278.063031] [<c0236c6b>] ? writeback_inodes_wb+0x10b/0x150
here should be writeback_sb_inodes() instead of writeback_inodes_wb
[ 278.063082] [<c0291d06>] ? entd_flush+0xa6/0xe0 [ 278.063127] [<c0291d40>] ? entd+0x0/0x240 [ 278.063166] [<c0291e51>] ? entd+0x111/0x240 [ 278.063208] [<c0165fd0>] ? autoremove_wake_function+0x0/0x50 [ 278.064008] [<c0291d40>] ? entd+0x0/0x240 [ 278.067417] [<c0165ba4>] ? kthread+0x74/0x80 [ 278.067417] [<c0165b30>] ? kthread+0x0/0x80 [ 278.067417] [<c010357e>] ? kernel_thread_helper+0x6/0x10
It is interesting that the path
entd -> writeback_inodes_wb -> ext4_da_writepages has never been triggered on my testing machine (I also have reiser4 and ext4 there). Perhaps, this is because of different system configurations.
I'll try to fix it in the near future, so that you'll be able to try reiser4.
Thanks for your report,
Edward.
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello.
Could you please try the attached patch?
This patch is against reiser4-for-2.6.36. Also please make sure you have the latest one (I have updated the stuff 11-Dec-2010).
Report, if any problems.
Thanks,
Edward.
Quoted 52 lines · Edward Shishkin
Quoted 8 lines · Андрей Колченко
Wanted to try reiser4. I have compiled a kernel with reiser4, format the partition and began to copy the folder /home.
After a short time the screen goes black and there was one console with the error output. After switching to other tty and back up continued. dmesg output copied to the pastebin
(http://pastebin.com/XyDKWJ8J).
This was repeated several times and the computer hangs perfectly still. I have ubuntu 10.10 on a laptop Acer Aspire 7720z.Yup, I see the bug:
instead of writing pages reiser4 kicks ext4 to do it, and, I guess, doesn't clearjournal_info(this is why ext4 oopses).[ 278.062271] [<c0318822>] ?
jbd2_journal_start+0x12/0x20[ 278.062322] [<c02f5858>] ?ext4_journal_start_sb+0xc8/0x100[ 278.062377] [<c02e0957>] ?ext4_meta_trans_blocks+0x67/0xc0[ 278.062431] [<c02e47e3>] ?ext4_da_writepages+0x203/0x560[ 278.062484] [<c060fccd>] ?_raw_spin_lock+0xd/0x10
[ 278.062530] [<c0281ca2>] ?flush_some_atom+0x312/0x540[ 278.062578] [<c02a4cdd>] ?writepages_cryptcompress+0x19d/0x220[ 278.062636] [<c02913a8>] ?reiser4_writeout+0xa8/0x1a0[ 278.062684] [<c022c186>] ?iput+0x36/0x270
[ 278.062724] [<c02367e4>] ?generic_writeback_sb_inodes+0xe4/0x150[ 278.062782] [<c01dfaac>] ?do_writepages+0x1c/0x40
[ 278.062826] [<c0236125>] ?writeback_single_inode+0x85/0x250[ 278.062877] [<c060fccd>] ?_raw_spin_lock+0xd/0x10
[ 278.062921] [<c028db64>] ?reiser4_writeback_inodes+0xa4/0x130[ 278.062974] [<c02367b1>] ?generic_writeback_sb_inodes+0xb1/0x150[ 278.063031] [<c0236c6b>] ?writeback_inodes_wb+0x10b/0x150here should be
writeback_sb_inodes()instead ofwriteback_inodes_wb[ 278.063082] [<c0291d06>] ?
entd_flush+0xa6/0xe0
[ 278.063127] [<c0291d40>] ?entd+0x0/0x240
[ 278.063166] [<c0291e51>] ?entd+0x111/0x240
[ 278.063208] [<c0165fd0>] ?autoremove_wake_function+0x0/0x50[ 278.064008] [<c0291d40>] ?entd+0x0/0x240
[ 278.067417] [<c0165ba4>] ?kthread+0x74/0x80
[ 278.067417] [<c0165b30>] ?kthread+0x0/0x80
[ 278.067417] [<c010357e>] ?kernel_thread_helper+0x6/0x10It is interesting that the path
entd ->writeback_inodes_wb->ext4_da_writepageshas never been triggered on my testing machine (I also have reiser4 and ext4 there). Perhaps, this is because of different system configurations.
Quoted 6 lines
I'll try to fix it in the near future, so that you'll be able to try reiser4.
Thanks for your report,
Edward.
entd_flush: use __writeback_inodes_sb() instead of writeback_inodes_wb. The last one also writes inodes, which don't belong reiser4: this is not acceptable in accordance with entd semantic (entd responds solely to reiser4_writepage() and must not serve other file systems).
--- fs/fs-writeback.c | 10 ++++++---- fs/reiser4/entd.c | 11 +++++++++-- include/linux/writeback.h | 3 +++ 3 files changed, 18 insertions(+), 6 deletions(-)
fs/fs-writeback.c +6 -4
@@ -560,17 +560,19 @@ void writeback_inodes_wb(struct bdi_writ }EXPORT_SYMBOL (writeback_inodes_wb); -static void __writeback_inodes_sb (struct super_block *sb, +void __writeback_inodes_sb (struct super_block *sb,struct bdi_writeback *wb,struct writeback_control *wbc) { -WARN_ON (!rwsem_is_locked (&sb->s_umount)); -spin_lock (&inode_lock);if (!wbc->for_kupdate ||list_empty (&wb->b_io))queue_io (wb, wbc->older_than_this); -generic_writeback_sb_inodes (sb, wb, wbc, true); +if (sb->s_op->writeback_inodes) + sb->s_op->writeback_inodes (sb, wb, wbc, true); +else +generic_writeback_sb_inodes (sb, wb, wbc, true);spin_unlock (&inode_lock); } +EXPORT_SYMBOL (__writeback_inodes_sb);/* * The maximum number of pages to writeout in a single bdi flush/kupdate
fs/reiser4/entd.c +9 -2
@@ -242,8 +242,15 @@ static void entd_flush(struct super_blocif (rq->wbc->nr_to_write >0 ) { rq->wbc->range_start =0 ; rq->wbc->range_end =LLONG_MAX ; -writeback_inodes_wb (&rq->mapping->backing_dev_info->wb, - rq->wbc); +/* +* we don't need to pin superblock for writeback: +* this is implicitly pinned by write_page_by_ent +* (via igrab), so that shutdown_super() will wait +* (on reiser4_put_super) for entd completion. +*/ +__writeback_inodes_sb (super, + &rq->mapping->backing_dev_info->wb, + rq->wbc); } rq->wbc->nr_to_write =ENTD_CAPTURE_APAGE_BURST ;
include/linux/writeback.h +3 -0
@@ -70,6 +70,9 @@ int writeback_inodes_sb_if_idle(struct svoid sync_inodes_sb (struct super_block *);void writeback_inodes_wb (struct bdi_writeback *wb,struct writeback_control *wbc); +void __writeback_inodes_sb (struct super_block *sb, +struct bdi_writeback *wb, +struct writeback_control *wbc);long wb_do_writeback (struct bdi_writeback *wb,int force_wait);void wakeup_flusher_threads (long nr_pages);
Quoted 7 lines · Dushan Tcholich
Hello
Can we have some version number after kernel version for fixups as latest upload for .36 on kernel.org is from 27-Dec-2010 21:17 That's the 3rd version for .36 with same name, so there'll probably be some confusion :D
Ok, I'll put additional ones suffixed with "-x" (x=1, 2, ...)
Edward.
Quoted 85 lines
Thanks
Dushan
Quoted 78 lines · Edward Shishkin
Hello.
Could you please try the attached patch?
This patch is against reiser4-for-2.6.36.
Also please make sure you have the latest one
(I have updated the stuff 11-Dec-2010).Report, if any problems.
Thanks,
Edward.Quoted 60 lines · Edward Shishkin
Quoted 9 lines · Андрей Колченко
Wanted to try reiser4. I have compiled a kernel with reiser4, format the partition and began to copy the folder /home.
After a short time the screen goes black and there was one console with the error output. After switching to other tty and back up continued. dmesg output copied to the pastebin
(http://pastebin.com/XyDKWJ8J).
This was repeated several times and the computer hangs perfectly still. I have ubuntu 10.10 on a laptop Acer Aspire 7720z.Yup, I see the bug:
instead of writing pages reiser4 kicks ext4 to do it, and, I guess, doesn't clearjournal_info(this is why ext4 oopses).[ 278.062271] [<c0318822>] ? jbd2_journal_start+0x12/0x20 [ 278.062322] [<c02f5858>] ? ext4_journal_start_sb+0xc8/0x100 [ 278.062377] [<c02e0957>] ? ext4_meta_trans_blocks+0x67/0xc0 [ 278.062431] [<c02e47e3>] ? ext4_da_writepages+0x203/0x560 [ 278.062484] [<c060fccd>] ? _raw_spin_lock+0xd/0x10 [ 278.062530] [<c0281ca2>] ? flush_some_atom+0x312/0x540 [ 278.062578] [<c02a4cdd>] ? writepages_cryptcompress+0x19d/0x220 [ 278.062636] [<c02913a8>] ? reiser4_writeout+0xa8/0x1a0 [ 278.062684] [<c022c186>] ? iput+0x36/0x270 [ 278.062724] [<c02367e4>] ? generic_writeback_sb_inodes+0xe4/0x150 [ 278.062782] [<c01dfaac>] ? do_writepages+0x1c/0x40 [ 278.062826] [<c0236125>] ? writeback_single_inode+0x85/0x250 [ 278.062877] [<c060fccd>] ? _raw_spin_lock+0xd/0x10 [ 278.062921] [<c028db64>] ? reiser4_writeback_inodes+0xa4/0x130 [ 278.062974] [<c02367b1>] ? generic_writeback_sb_inodes+0xb1/0x150 [ 278.063031] [<c0236c6b>] ? writeback_inodes_wb+0x10b/0x150here should be
writeback_sb_inodes()instead ofwriteback_inodes_wb[ 278.063082] [<c0291d06>] ? entd_flush+0xa6/0xe0 [ 278.063127] [<c0291d40>] ? entd+0x0/0x240 [ 278.063166] [<c0291e51>] ? entd+0x111/0x240 [ 278.063208] [<c0165fd0>] ? autoremove_wake_function+0x0/0x50 [ 278.064008] [<c0291d40>] ? entd+0x0/0x240 [ 278.067417] [<c0165ba4>] ? kthread+0x74/0x80 [ 278.067417] [<c0165b30>] ? kthread+0x0/0x80 [ 278.067417] [<c010357e>] ? kernel_thread_helper+0x6/0x10It is interesting that the path
entd ->writeback_inodes_wb->ext4_da_writepageshas never been triggered on my testing machine (I also have reiser4 and ext4 there). Perhaps, this is because of different system configurations.I'll try to fix it in the near future, so that you'll be able to try reiser4.
Thanks for your report,
Edward.
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html