lkml.org 
[lkml]   [1998]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: RAID5 bug in 2.1.103
Richard Jones wrote:

> I can run a diagnostic patch if you like, so long as the patch
> doesn't interfere with stability too much. The current kernel
> version is 2.1.96, but I'm thinking of upgrading to 2.1.10[34]
> perhaps at the weekend.

Hi Richard,

OK, here's a very small patch that may point to the problem. If you can
trigger the message under conditions similar to what causes the RAID
problems, I'll have a good idea of what needs to be fixed.

Regards,
Bill--- fs/buffer.c.old Sun May 17 12:21:49 1998
+++ fs/buffer.c Tue Jun 2 21:30:45 1998
@@ -1050,10 +1050,13 @@
wait_on_buffer(buf);
mark_buffer_clean(buf);
clear_bit(BH_Protected, &buf->b_state);
- buf->b_count--;
remove_from_hash_queue(buf);
buf->b_dev = NODEV;
refile_buffer(buf);
+ if (!--buf->b_count)
+ return;
+ printk("VFS: forgot an in-use buffer! (count=%d)\n",
+ buf->b_count);
}

/*
\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.032 / U:25.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site