Skip to contentSkip to conversation

Reiser4 panics on kernel 3.6.11 (balance_dirty_page_cluster, edward-1547)

DISCUSSION Edward Shishkin 2 participants 3 messages Jan 27, 2013 – Jan 30, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello Gleb,

Thanks for the report!
Please, find the fixup in the attachment.

Edward.
P.S. Reiser4 debug mode results in dramatic performance drop when tail packing / compression is on. Use it only when something goes wrong...

Quoted 10 lines · Gleb Baryshev

Hello,

I get a kernel panic when I start Opera browser on Linux 3.6.11 patched with reiser4-for-3.6.4. The filesystem is ccreg and used for /.

Here are a couple of screenshots attached with assertions and stack traces.

Regards,
Gleb

---
 fs/reiser4/plugin/file/cryptcompress.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
fs/reiser4/plugin/file/cryptcompress.c +3 -2
@@ -2020,8 +2020,7 @@ static int balance_dirty_page_cluster(st
 
 	assert("edward-724", inode != NULL);
 	assert("edward-725", cryptcompress_inode_ok(inode));
-	assert("edward-1547",
-	       nr_dirtied != 0 && nr_dirtied <= cluster_nrpages(inode));
+	assert("edward-1547", nr_dirtied <= cluster_nrpages(inode));
 
 	/* set next window params */
 	move_update_window(inode, clust, off, to_file);
@@ -2032,6 +2031,8 @@ static int balance_dirty_page_cluster(st
 	assert("edward-726", clust->hint->lh.owner == NULL);
 	info = cryptcompress_inode_data(inode);
 
+	if (nr_dirtied == 0)
+		return 0;
 	mutex_unlock(&info->checkin_mutex);
 	reiser4_throttle_write(inode, nr_dirtied);
 	mutex_lock(&info->checkin_mutex);
#2 lore raw
Quoted 9 lines · Edward Shishkin

Hello Gleb,

Thanks for the report!
Please, find the fixup in the attachment.

Edward.
P.S. Reiser4 debug mode results in dramatic performance drop when tail packing / compression is on. Use it only when something goes wrong...

Now it works ok, thank you for the fix and for the hint!

Regards,
Gleb

#3 lore raw
Quoted 6 lines · Gleb Baryshev
Quoted 5 lines · Edward Shishkin

Hello Gleb,

Thanks for the report!
Please, find the fixup in the attachment.

Quoted 7 lines
Quoted 4 lines

Edward.
P.S. Reiser4 debug mode results in dramatic performance drop when tail packing / compression is on. Use it only when something goes wrong...

Now it works ok, thank you for the fix and for the hint!

You are welcome.
Also if you work with reiser4 on kernels < 3.7, please, make sure that the following options in .config are off:

CONFIG_HUGEPAGES
CONFIG_COMPACTION
CONFIG_MIGRATION

Thanks,
Edward.