Date: Fri, 25 Sep 1998 11:45:46 -0700 (PDT) From: Matthew Dillon <dillon@backplane.com> To: committers@FreeBSD.ORG Subject: VM fix for write()/mmap() corruption PR going in later today Message-ID: <199809251845.LAA26836@apollo.backplane.com>
next in thread | raw e-mail | index | archive | help
It looks like the fix is working. I'm hoping to get confirmation from
another party later today and then intend to commit it.
The patch will consist of clearing B_RELBUF in brelse() if B_DELWRI is
set, just prior to the VMIO buffer rundown, basically:
/*
* Clear B_RELBUF if B_DELWRI is set. We absolutely
* cannot call vfs_vmio_release() if B_DELWRI is set or we may
* lose data writes.
*/
if (bp->b_flags & B_DELWRI)
bp->b_flags &= ~B_RELBUF;
The patch will be commited into -current later today. I would also like
to commit the patch to -stable so it gets into 2.2.8 as there have also
been reports of the corruption occuring on -stable systems. I have also
tested it on one of our other -stable based news machines and it seems to
do no harm.
Does anyone have any objections to my commiting the patch into -stable
as well?
-Matt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809251845.LAA26836>
