Remove unneeded D_NEEDGIANT from /dev/fd/{0,1,2}.

There is no reason the fdopen() routine needs Giant. It only sets
curthread->td_dupfd, based on the device unit number of the cdev.

I guess we won't get massive performance improvements here, but still, I
assume we eventually want to get rid of Giant.
This commit is contained in:
Ed Schouten 2008-08-09 12:42:12 +00:00
parent c3a7b734ad
commit 79da190c16

View File

@ -2972,7 +2972,6 @@ fdopen(struct cdev *dev, int mode, int type, struct thread *td)
static struct cdevsw fildesc_cdevsw = {
.d_version = D_VERSION,
.d_flags = D_NEEDGIANT,
.d_open = fdopen,
.d_name = "FD",
};