MFC: Call vn_finished_write() before calling the coredump handler which will

indirectly call vn_start_write() as necessary for each write.
This commit is contained in:
tegge 2006-05-14 01:07:48 +00:00
parent f34cbfff5a
commit 09952cce7b

View File

@ -2624,6 +2624,7 @@ coredump(struct thread *td)
VOP_LEASE(vp, td, cred, LEASE_WRITE);
VOP_SETATTR(vp, &vattr, cred, td);
VOP_UNLOCK(vp, 0, td);
vn_finished_write(mp);
PROC_LOCK(p);
p->p_acflag |= ACORE;
PROC_UNLOCK(p);
@ -2636,7 +2637,6 @@ coredump(struct thread *td)
lf.l_type = F_UNLCK;
VOP_ADVLOCK(vp, (caddr_t)p, F_UNLCK, &lf, F_FLOCK);
}
vn_finished_write(mp);
out:
error1 = vn_close(vp, FWRITE, cred, td);
mtx_unlock(&Giant);