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:
parent
f34cbfff5a
commit
09952cce7b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user