Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170003988
D12790.id34332.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
729 B
Referenced Files
None
Subscribers
None
D12790.id34332.diff
View Options
Index: sys/ufs/ffs/ffs_softdep.c
===================================================================
--- sys/ufs/ffs/ffs_softdep.c
+++ sys/ufs/ffs/ffs_softdep.c
@@ -14273,25 +14273,14 @@
/*
* Wait for pending output on a vnode to complete.
- * Must be called with vnode lock and interlock locked.
- *
- * XXX: Should just be a call to bufobj_wwait().
*/
static void
drain_output(vp)
struct vnode *vp;
{
- struct bufobj *bo;
- bo = &vp->v_bufobj;
ASSERT_VOP_LOCKED(vp, "drain_output");
- ASSERT_BO_WLOCKED(bo);
-
- while (bo->bo_numoutput) {
- bo->bo_flag |= BO_WWAIT;
- msleep((caddr_t)&bo->bo_numoutput,
- BO_LOCKPTR(bo), PRIBIO + 1, "drainvp", 0);
- }
+ (void)bufobj_wwait(&vp->v_bufobj, 0, 0);
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Sep 4, 5:46 AM (3 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38198333
Default Alt Text
D12790.id34332.diff (729 B)
Attached To
Mode
D12790: Make drain_output() use bufobj_wwait()
Attached
Detach File
Event Timeline
Log In to Comment