* Re: [xfstests/generic/081] Kernel panic with reg40 plugin and R4-for-4.1.5.patch [not found] <CADW=+3=x+ajq+N4QqwmRQ-4uEAPEpr5xopV+31zz2HQonMc_UA@mail.gmail.com> @ 2015-09-10 19:20 ` Edward Shishkin 2015-09-10 19:42 ` Dušan Čolić 0 siblings, 1 reply; 6+ messages in thread From: Edward Shishkin @ 2015-09-10 19:20 UTC (permalink / raw) To: Dušan Čolić, reiserfs-devel [-- 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; ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [xfstests/generic/081] Kernel panic with reg40 plugin and R4-for-4.1.5.patch 2015-09-10 19:20 ` [xfstests/generic/081] Kernel panic with reg40 plugin and R4-for-4.1.5.patch Edward Shishkin @ 2015-09-10 19:42 ` Dušan Čolić 2015-09-10 20:10 ` Edward Shishkin 0 siblings, 1 reply; 6+ messages in thread From: Dušan Čolić @ 2015-09-10 19:42 UTC (permalink / raw) To: Edward Shishkin; +Cc: reiserfs-devel On Thu, Sep 10, 2015 at 9:20 PM, Edward Shishkin <edward.shishkin@gmail.com> wrote: > 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... > I looked more into this: This test fills up dm snapshot (writes 5MB to 4MB snapshot) so we get IO error because it's full. It doesn't trigger on ccreg40 because ccreg40 compresses data so 5MB of compressible data < 4MB space ;) xfstests uses compressible data for disk full tests so on ccreg40 they give false positive. Are ccreg40 and reg40 code paths for disk full situation the same? I'll look into fixing xfstetsts. > 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 > > -- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [xfstests/generic/081] Kernel panic with reg40 plugin and R4-for-4.1.5.patch 2015-09-10 19:42 ` Dušan Čolić @ 2015-09-10 20:10 ` Edward Shishkin 2015-09-10 20:21 ` Dušan Čolić 2015-09-10 20:24 ` Edward Shishkin 0 siblings, 2 replies; 6+ messages in thread From: Edward Shishkin @ 2015-09-10 20:10 UTC (permalink / raw) To: Dušan Čolić; +Cc: reiserfs-devel On 09/10/2015 09:42 PM, Dušan Čolić wrote: > On Thu, Sep 10, 2015 at 9:20 PM, Edward Shishkin > <edward.shishkin@gmail.com> wrote: >> 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... >> > I looked more into this: This test fills up dm snapshot (writes 5MB to > 4MB snapshot) so we get IO error because it's full. IO error because of no space - it is very strange, especially when reading the device (as in my case): # dd if=/dev/dm-3 of=/dev/null bs=4096 count=1 > It doesn't trigger > on ccreg40 because ccreg40 compresses data so 5MB of compressible data > < 4MB space ;) > xfstests uses compressible data for disk full tests so on ccreg40 they > give false positive. Are ccreg40 and reg40 code paths for disk full > situation the same? > I'll look into fixing xfstetsts. >> 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 >> -- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [xfstests/generic/081] Kernel panic with reg40 plugin and R4-for-4.1.5.patch 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 1 sibling, 1 reply; 6+ messages in thread From: Dušan Čolić @ 2015-09-10 20:21 UTC (permalink / raw) To: Edward Shishkin; +Cc: reiserfs-devel Does dm snapshot returns EIO when filled? From Documentation/device-mapper/snapshot.txt : " <COW device> will often be smaller than the origin and if it fills up the snapshot will become useless and be disabled, returning errors. So it is important to monitor the amount of free space and expand the <COW device> before it fills up." On Thu, Sep 10, 2015 at 10:10 PM, Edward Shishkin <edward.shishkin@gmail.com> wrote: > > > On 09/10/2015 09:42 PM, Dušan Čolić wrote: >> >> On Thu, Sep 10, 2015 at 9:20 PM, Edward Shishkin >> <edward.shishkin@gmail.com> wrote: >>> >>> 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... >>> >> I looked more into this: This test fills up dm snapshot (writes 5MB to >> 4MB snapshot) so we get IO error because it's full. > > > > IO error because of no space - it is very strange, > especially when reading the device (as in my case): > > # dd if=/dev/dm-3 of=/dev/null bs=4096 count=1 > > > >> It doesn't trigger >> on ccreg40 because ccreg40 compresses data so 5MB of compressible data >> < 4MB space ;) >> xfstests uses compressible data for disk full tests so on ccreg40 they >> give false positive. Are ccreg40 and reg40 code paths for disk full >> situation the same? >> I'll look into fixing xfstetsts. >>> >>> 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 >>> >>> > -- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [xfstests/generic/081] Kernel panic with reg40 plugin and R4-for-4.1.5.patch 2015-09-10 20:21 ` Dušan Čolić @ 2015-09-10 20:47 ` Edward Shishkin 0 siblings, 0 replies; 6+ messages in thread From: Edward Shishkin @ 2015-09-10 20:47 UTC (permalink / raw) To: Dušan Čolić; +Cc: reiserfs-devel On 09/10/2015 10:21 PM, Dušan Čolić wrote: > Does dm snapshot returns EIO when filled? > From Documentation/device-mapper/snapshot.txt : > > " <COW device> will often be > smaller than the origin and if it fills up the snapshot will become > useless and be disabled, returning errors. So it is important to monitor > the amount of free space and expand the <COW device> before it fills up." OK, I agree :) > > On Thu, Sep 10, 2015 at 10:10 PM, Edward Shishkin > <edward.shishkin@gmail.com> wrote: >> >> On 09/10/2015 09:42 PM, Dušan Čolić wrote: >>> On Thu, Sep 10, 2015 at 9:20 PM, Edward Shishkin >>> <edward.shishkin@gmail.com> wrote: >>>> 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... >>>> >>> I looked more into this: This test fills up dm snapshot (writes 5MB to >>> 4MB snapshot) so we get IO error because it's full. >> >> >> IO error because of no space - it is very strange, >> especially when reading the device (as in my case): >> >> # dd if=/dev/dm-3 of=/dev/null bs=4096 count=1 >> >> >> >>> It doesn't trigger >>> on ccreg40 because ccreg40 compresses data so 5MB of compressible data >>> < 4MB space ;) >>> xfstests uses compressible data for disk full tests so on ccreg40 they >>> give false positive. Are ccreg40 and reg40 code paths for disk full >>> situation the same? >>> I'll look into fixing xfstetsts. >>>> 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 >>>> -- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [xfstests/generic/081] Kernel panic with reg40 plugin and R4-for-4.1.5.patch 2015-09-10 20:10 ` Edward Shishkin 2015-09-10 20:21 ` Dušan Čolić @ 2015-09-10 20:24 ` Edward Shishkin 1 sibling, 0 replies; 6+ messages in thread From: Edward Shishkin @ 2015-09-10 20:24 UTC (permalink / raw) To: Dušan Čolić; +Cc: reiserfs-devel On 09/10/2015 10:10 PM, Edward Shishkin wrote: > > > On 09/10/2015 09:42 PM, Dušan Čolić wrote: >> On Thu, Sep 10, 2015 at 9:20 PM, Edward Shishkin >> <edward.shishkin@gmail.com> wrote: >>> 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... >>> >> I looked more into this: This test fills up dm snapshot (writes 5MB to >> 4MB snapshot) so we get IO error because it's full. > > > IO error because of no space - it is very strange, > especially when reading the device (as in my case): > > # dd if=/dev/dm-3 of=/dev/null bs=4096 count=1 > > >> It doesn't trigger >> on ccreg40 because ccreg40 compresses data so 5MB of compressible data >> < 4MB space ;) >> xfstests uses compressible data for disk full tests so on ccreg40 they >> give false positive. Are ccreg40 and reg40 code paths for disk full >> situation the same? The behavior doesn't depend on file plugin: this is the transaction manager who makes the decisions. >> I'll look into fixing xfstetsts. >>> 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 >>> > -- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-09-10 20:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CADW=+3=x+ajq+N4QqwmRQ-4uEAPEpr5xopV+31zz2HQonMc_UA@mail.gmail.com>
2015-09-10 19:20 ` [xfstests/generic/081] Kernel panic with reg40 plugin and R4-for-4.1.5.patch Edward Shishkin
2015-09-10 19:42 ` 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
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.