From: Edward Shishkin <edward.shishkin@gmail.com>
To: Gleb Baryshev <gleb.baryshev@gmail.com>
Cc: reiserfs-devel@vger.kernel.org
Subject: Re: Reiser4 panics on kernel 3.6.11 (balance_dirty_page_cluster, edward-1547)
Date: Mon, 28 Jan 2013 00:49:56 +0100 [thread overview]
Message-ID: <5105BD24.1020009@gmail.com> (raw)
In-Reply-To: <5103A388.2080906@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 530 bytes --]
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...
On 01/26/2013 10:36 AM, Gleb Baryshev wrote:
> 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
>
[-- Attachment #2: reiser4-fix-balance_dirty-assert.patch --]
[-- Type: text/plain, Size: 995 bytes --]
Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
---
fs/reiser4/plugin/file/cryptcompress.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- linux-3.7.1.orig/fs/reiser4/plugin/file/cryptcompress.c
+++ linux-3.7.1/fs/reiser4/plugin/file/cryptcompress.c
@@ -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);
next parent reply other threads:[~2013-01-27 23:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5103A388.2080906@gmail.com>
2013-01-27 23:49 ` Edward Shishkin [this message]
2013-01-30 18:48 ` Reiser4 panics on kernel 3.6.11 (balance_dirty_page_cluster, edward-1547) Gleb Baryshev
2013-01-30 20:27 ` Edward Shishkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5105BD24.1020009@gmail.com \
--to=edward.shishkin@gmail.com \
--cc=gleb.baryshev@gmail.com \
--cc=reiserfs-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).