Messages in this thread Patch in this message | | | Date | Tue, 02 Jun 1998 21:56:22 -0400 | From | Bill Hawes <> | Subject | Re: 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); } /* | |