Re: reiser4 panic in do_readpage_extent

2007-03-09 Thread Edward Shishkin

Devils-Hawk wrote:

Recently tried switching from 2.6.18 + reiser4-for-2.6.18-r3.patch.gz, 
which works perfectly fine to 2.6.19 + reiser4-for-2.6.19-r3.patch.gz
I also tried 2.6.20 laurent riffard's reiser4-for-2.6.20. The last 
both die somewhere during init when one of the 2 following asserts fails:

extent_file_ops, Line 1160: assert(nikita-2688),j)
extent_file_ops, Line 1161: assert(vs-1426),jnode_page(j) == NULL )

fs was fsck'ed with reiser4progs-1.0.5

regards DevH




Would you please try the attached patch over reiser4-for-2.6.[19, 20]

Thanks,
Edward.
Handle possible race:
do not proceed uf_readpages_filler if page is already uptodate.

Signed-off-by: Edward Shishkin [EMAIL PROTECTED]
---
 linux-2.6.20-mm2/fs/reiser4/plugin/file/file.c |4 
 1 files changed, 4 insertions(+)

--- linux-2.6.20-mm2/fs/reiser4/plugin/file/file.c.orig
+++ linux-2.6.20-mm2/fs/reiser4/plugin/file/file.c
@@ -1619,6 +1619,10 @@
 		lock_page(page);
 		cbk_done = 1;
 	}
+	if (PageUptodate(page)) {
+		unlock_page(page);
+		return 0;
+	}
 	ret = zload(rc-coord.node);
 	if (ret) {
 		unlock_page(page);


Re: reiser4 panic in do_readpage_extent

2007-03-09 Thread Devils-Hawk
The problem still persists also trying to boot multiple times it 
sometimes triggers much earlier in the boot process than it did before.


regards devh

Edward Shishkin wrote:


Would you please try the attached patch over reiser4-for-2.6.[19, 20]

Thanks,
Edward.