Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159102325
D30555.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
541 B
Referenced Files
None
Subscribers
None
D30555.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D30555: vinvalbuf: do not panic if we were unable to flush dirty buffers
Attached
Detach File
Event Timeline
Log In to Comment