summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-05-31 00:41:37 +0000
committerdyson <dyson@FreeBSD.org>1996-05-31 00:41:37 +0000
commit11d90f0f2a72692d3d23245ab1c6caf46b781fd7 (patch)
treeba6371edde8a34105ff4078da71db42cf3fb08a4 /sys/kern
parent65214cd0c8fbe9d65c224d853573549dba9406fa (diff)
downloadFreeBSD-src-11d90f0f2a72692d3d23245ab1c6caf46b781fd7.zip
FreeBSD-src-11d90f0f2a72692d3d23245ab1c6caf46b781fd7.tar.gz
Keep brelse from freeing busy pages.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 1905cee..6b41014 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -18,7 +18,7 @@
* 5. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: vfs_bio.c,v 1.90 1996/05/18 03:37:06 dyson Exp $
+ * $Id: vfs_bio.c,v 1.91 1996/05/24 05:21:58 dyson Exp $
*/
/*
@@ -609,7 +609,7 @@ vfs_vmio_release(bp)
wakeup(m);
}
vm_page_unwire(m);
- if (m->wire_count == 0) {
+ if (m->wire_count == 0 && (m->flags & PG_BUSY) == 0) {
if (m->valid) {
if(m->dirty == 0)
vm_page_test_dirty(m);
OpenPOWER on IntegriCloud