summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2007-03-26 21:56:46 +0000
committerkris <kris@FreeBSD.org>2007-03-26 21:56:46 +0000
commit2ddeaf92036c8988cca5697c02d5c476feeffbdb (patch)
tree41af858685ac59e44eb984517f378bf7d7e0769d /sys/fs/devfs
parent85b6f9c7d1d2761b78f1bcc8f363dd017a705ca7 (diff)
downloadFreeBSD-src-2ddeaf92036c8988cca5697c02d5c476feeffbdb.zip
FreeBSD-src-2ddeaf92036c8988cca5697c02d5c476feeffbdb.tar.gz
Annotate that this giant acqusition is dependent on tty locking.
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r--sys/fs/devfs/devfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index dc39e67..b19a75a 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -502,7 +502,7 @@ devfs_ioctl_f(struct file *fp, u_long com, void *data, struct ucred *cred, struc
return (0);
}
- mtx_lock(&Giant);
+ mtx_lock(&Giant); /* XXX TTY */
vpold = td->td_proc->p_session->s_ttyvp;
VREF(vp);
@@ -515,7 +515,7 @@ devfs_ioctl_f(struct file *fp, u_long com, void *data, struct ucred *cred, struc
/* Get rid of reference to old control tty */
if (vpold)
vrele(vpold);
- mtx_unlock(&Giant);
+ mtx_unlock(&Giant); /* XXX TTY */
}
return (error);
}
OpenPOWER on IntegriCloud