Re: RAID5 bug in 2.1.103

Bill Hawes (whawes@star.net)
Tue, 02 Jun 1998 21:56:22 -0400


This is a multi-part message in MIME format.
--------------C2C65482AA2C6665665BEA8F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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
--------------C2C65482AA2C6665665BEA8F
Content-Type: text/plain; charset=us-ascii; name="bforget_103-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="bforget_103-patch"

--- 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);
}

/*

--------------C2C65482AA2C6665665BEA8F--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu