mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Give vn_poll single exit point (to make it easier to insert
"mtx_unlock(&Giant)" real soon now).
This commit is contained in:
parent
f661e9a0bc
commit
f608397595
1 changed files with 3 additions and 5 deletions
|
|
@ -848,9 +848,7 @@ vn_poll(fp, events, active_cred, td)
|
|||
struct thread *td;
|
||||
{
|
||||
struct vnode *vp;
|
||||
#ifdef MAC
|
||||
int error;
|
||||
#endif
|
||||
|
||||
GIANT_REQUIRED;
|
||||
|
||||
|
|
@ -859,11 +857,11 @@ vn_poll(fp, events, active_cred, td)
|
|||
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
|
||||
error = mac_check_vnode_poll(active_cred, fp->f_cred, vp);
|
||||
VOP_UNLOCK(vp, 0, td);
|
||||
if (error)
|
||||
return (error);
|
||||
if (!error)
|
||||
#endif
|
||||
|
||||
return (VOP_POLL(vp, events, fp->f_cred, td));
|
||||
error = VOP_POLL(vp, events, fp->f_cred, td);
|
||||
return (error);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue