]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
brelse() was improperly clearing B_DELWRI in the B_DELWRI|B_INVAL case
authordillon <dillon@FreeBSD.org>
Wed, 3 Apr 2002 00:17:36 +0000 (00:17 +0000)
committerdillon <dillon@FreeBSD.org>
Wed, 3 Apr 2002 00:17:36 +0000 (00:17 +0000)
commit9a85737b15277c313ff96ba8a6decb009a81924d
treef0a34c601ccc117e90e140cded4a6126bceb1139
parentaad01d8119fbe546c9fef66008eae583874245f8
brelse() was improperly clearing B_DELWRI in the B_DELWRI|B_INVAL case
without removing the buffer from the vnode's dirty buffer list, which
can result in a panic in NFS.  Replaced the code with a call to bundirty()
which deals with it properly.

PR: kern/36108, kern/36174
Submitted by: various people
Special mention: to Danny Schales <dan@coes.LaTech.edu> for providing a core dump that helped me track this down.
MFC after: 1 day
sys/kern/vfs_bio.c