Re: -ac13 buffer.c MAJOR bug

From: Stephen C. Tweedie (sct@redhat.com)
Date: Sun Jun 11 2000 - 14:23:47 EST


Hi,

On Sun, Jun 11, 2000 at 12:34:40PM -0400, I Lee Hetherington wrote:
> I am not seeing this BUG in ac12. It is solid for me. It would seem to
> be an ac13 feature.

It is. The fix is below.

The problem is that with async write-behind, buffers on the per-inode
dirty list can be cleaned and I/O can complete before the vm scanner
identifies the clean buffer and refiles it (which will remove if from
the inode list). So, we can end up with clean buffers on the per-inode
dirty list. It is quite legal to recycle these buffers, and
try_to_free_buffers() already owns the necessary spinlocks to do so
by the time it gets this far.

--Stephen



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:23 EST