Page MenuHomeFreeBSD

D30555.diff
No OneTemporary

D30555.diff

diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2032,13 +2032,11 @@
} while (error == ERELOOKUP);
if (error != 0)
return (error);
- /*
- * XXX We could save a lock/unlock if this was only
- * enabled under INVARIANTS
- */
BO_LOCK(bo);
- if (bo->bo_numoutput > 0 || bo->bo_dirty.bv_cnt > 0)
- panic("vinvalbuf: dirty bufs");
+ if (bo->bo_numoutput > 0 || bo->bo_dirty.bv_cnt > 0) {
+ BO_UNLOCK(bo);
+ return (EBUSY);
+ }
}
}
/*

File Metadata

Mime Type
text/plain
Expires
Thu, Jun 11, 3:48 AM (8 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33866326
Default Alt Text
D30555.diff (541 B)

Event Timeline