BUG: at fs/reiserfs/inode.c:2868 reiserfs_releasepage()
We're seeing the above error repeated numerous times in our dmesg log, though it doesn't seem to be causing any major problems. The full message is:
BUG: at fs/reiserfs/inode.c:2868 reiserfs_releasepage() [<c0199ecb>] reiserfs_releasepage+0xa3/0xa8 [<c0199e28>] reiserfs_releasepage+0x0/0xa8 [<c013c8e9>] try_to_release_page+0x2c/0x40 [<c0141386>] pagevec_strip+0x52/0x54 [<c0142027>] shrink_active_list+0x347/0x3d1 [<c0142b33>] shrink_zone+0xd8/0xf5 [<c014307c>] kswapd+0x322/0x423 [<c012b4e4>] autoremove_wake_function+0x0/0x37 [<c0142d5a>] kswapd+0x0/0x423 [<c012b362>] kthread+0xae/0xd3 [<c012b2b4>] kthread+0x0/0xd3 [<c010383b>] kernel_thread_helper+0x7/0x1c =======================
$ uptime 02:45:06 up 38 days, 23:53, 1 user, load average: 1.47, 1.35, 1.78 $ dmesg | grep BUG: | grep releasepage | wc -l 226
This is linux 2.6.20.11 with one patch applied to work around this bug http://lists.linuxcoding.com/kernel/2006-q1/msg32508.html, the patch is:
-----
fs/reiserfs/file.c 2007-02-02 01:01:36.000000000 -0500 renamed from fs/reiserfs/file.c 2006-11-29 16:57:37.000000000 -0500 +2 -1
@@ -1358,6 +1358,8 @@ return result; } + return do_sync_write(file, buf, count, ppos); + if (unlikely((ssize_t) count < 0)) return -EINVAL; ------
Any idea what's causing this?
Rob
Quoted 7 lines · Rob Mueller
This is linux 2.6.20.11 with one patch applied to work around this bug
http://lists.linuxcoding.com/kernel/2006-q1/msg32508.html, the patch is:-----
fs/reiserfs/file.c 2007-02-02 01:01:36.000000000 -0500 line 1364
Quoted 7 lines
fs/reiserfs/file.c 2007-02-02 01:01:36.000000000 -0500 renamed from fs/reiserfs/file.c 2006-11-29 16:57:37.000000000 -0500 +2
-0@@ -1358,6 +1358,8 @@ return result; } + return do_sync_write(file, buf, count, ppos); + if (unlikely((ssize_t) count < 0)) return -EINVAL;
that's the dead code than, because you put return upfront. this ain't any fix, problem probably lies somewhere else - and is exposed by 'unlikely()' function.
Signature · 1 line
GJ
Quoted 11 lines · Grzegorz JaÅ›kiewicz
Quoted 10 lines · Rob Mueller
This is linux 2.6.20.11 with one patch applied to work around this bug
http://lists.linuxcoding.com/kernel/2006-q1/msg32508.html, the patch is:-----
fs/reiserfs/file.c 2007-02-02 01:01:36.000000000 -0500 renamed from fs/reiserfs/file.c 2006-11-29 16:57:37.000000000 -0500 +0
-0@@ -1358,6 +1358,8 @@ return result; }
Quoted 8 lines
fs/reiserfs/file.c 2007-02-02 01:01:36.000000000 -0500 line 1364
Quoted 4 lines
fs/reiserfs/file.c 2007-02-02 01:01:36.000000000 -0500 renamed from fs/reiserfs/file.c 2006-11-29 16:57:37.000000000 -0500 +2
-0+ return do_sync_write(file, buf, count, ppos); + if (unlikely((ssize_t) count < 0)) return -EINVAL;that's the dead code than, because you put return upfront. this ain't any fix, problem probably lies somewhere else - and is exposed by '
unlikely()' function.
Hmm - that's not what Vladamir said on 2 Feb.
It wasn't posted anywhere I can find a public archive, but here's the important bit:
=========================
From: "Vladimir V. Saveliev" <[email protected]>
Subject: Re: Reiserfs and MMAP (was: How many people are using 2.6.16?)
Cc: [email protected]
To: Bron Gondwana <[email protected]>
Hello
Quoted 24 lines · Bron Gondwana
On Wed, Jan 31, 2007 at 08:02:37AM +0100, Adrian Bunk wrote:
[ snip stuff about reiserfs changes ]Referring back to: <[email protected]> (which went to reiserfs-dev and a couple of the ever-growing CC list above) we're still not 100% sure if it's safe to remove the patch that I attached there:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
file.c 2004-10-08 10:03:03.001561661 +0400 line 1143
Quoted 10 lines
file.c 2004-10-08 10:03:03.001561661 +0400 renamed from file.c~ 2004-10-02 12:29:33.223660850 +0400 +2
-0@@ -1137,6 +1137,8 @@ return result; } + return generic_file_write(file, buf, count, ppos); + if ( unlikely((ssize_t) count < 0 )) return -EINVAL;which Hans asserted was about 5% slower than the resierfs custom write implementation, but we countered at least meant that we didn't crash in a steaming pile of processes stuck in D state with no way out every few days.
Quoted 1 line
It doesn't apply against 2.6.19 any more,
use do_sync_write instead of generic_file_write.
This patch is needed, custom reiserfs write may deadlock writing process
=========================
Which looks to me like we should have the same return statement except with do_sync_write as the new function name.
Did we misinterpret? Does anyone have a better solution? Steaming piles of processes in D state are much less our friend than occasional stack traces in dmesg.
Thanks,
Bron.
-
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html