From: Edward Shishkin <edward.shishkin@gmail.com>
To: "Dušan Čolić" <dusanc@gmail.com>,
reiserfs-devel <reiserfs-devel@vger.kernel.org>
Subject: Re: [xfstests/generic/081] Kernel panic with reg40 plugin and R4-for-4.1.5.patch
Date: Thu, 10 Sep 2015 21:20:09 +0200 [thread overview]
Message-ID: <55F1D7E9.2000209@gmail.com> (raw)
In-Reply-To: <CADW=+3=x+ajq+N4QqwmRQ-4uEAPEpr5xopV+31zz2HQonMc_UA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 813 bytes --]
Actually, this is not a regression.
The attached patch prevents the panic.
By default on IO errors reiser4 partition will be remounted as "readonly".
No ideas why accessing /dev/dm-X causes IO error.
Reiser4 is not the culprit ;) You can narrow down this, if interesting.
I think that something is wrong with LVM settings...
Thanks,
Edward.
On 09/04/2015 09:35 AM, Dušan Čolić wrote:
> Kernel: 4.1.6
> R4 patch: 4.1.5
> Test: xfstests/generic/081 "Test I/O error path by fully filling an dm
> snapshot."
>
> Test passes cleanly with ccreg40 but kernel panics with reg40 plugin.
> Picture of the panic, as I had no other means of capturing it, is in attachment.
>
> xfstests local.config section:
>
> [r4Hybrid]
> MKFS_OPTIONS="-o create=reg40"
> MOUNT_OPTIONS="-o noatime"
>
> Have a nice day.
>
> Dushan
[-- Attachment #2: reiser4-change-default-behavior-on-error-fixup.patch --]
[-- Type: text/x-patch, Size: 638 bytes --]
Don't panic by default on IO errors, remount ro instead
Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
---
fs/reiser4/vfs_ops.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/fs/reiser4/vfs_ops.c
+++ b/fs/reiser4/vfs_ops.c
@@ -232,9 +232,8 @@ void reiser4_handle_error(void)
reiser4_status_write(REISER4_STATUS_DAMAGED, 0,
"Filesystem error occured");
switch (get_super_private(sb)->onerror) {
- case 0:
- reiser4_panic("foobar-42", "Filesystem error occured\n");
case 1:
+ reiser4_panic("foobar-42", "Filesystem error occured\n");
default:
if (sb->s_flags & MS_RDONLY)
return;
next parent reply other threads:[~2015-09-10 19:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CADW=+3=x+ajq+N4QqwmRQ-4uEAPEpr5xopV+31zz2HQonMc_UA@mail.gmail.com>
2015-09-10 19:20 ` Edward Shishkin [this message]
2015-09-10 19:42 ` [xfstests/generic/081] Kernel panic with reg40 plugin and R4-for-4.1.5.patch Dušan Čolić
2015-09-10 20:10 ` Edward Shishkin
2015-09-10 20:21 ` Dušan Čolić
2015-09-10 20:47 ` Edward Shishkin
2015-09-10 20:24 ` 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=55F1D7E9.2000209@gmail.com \
--to=edward.shishkin@gmail.com \
--cc=dusanc@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.