diff options
author | ed <ed@FreeBSD.org> | 2008-08-09 12:42:12 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2008-08-09 12:42:12 +0000 |
commit | 746d949d895abb79b7e7f29d4c945d54e6108be0 (patch) | |
tree | 01736d1749e5be2efae9e77db622d7b28772b8a3 | |
parent | 8010de5c80f2b6792ad4a6dacb5f7d6ab3ab5b53 (diff) | |
download | FreeBSD-src-746d949d895abb79b7e7f29d4c945d54e6108be0.zip FreeBSD-src-746d949d895abb79b7e7f29d4c945d54e6108be0.tar.gz |
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.
-rw-r--r-- | sys/kern/kern_descrip.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index f4e5f56..b7a486b 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -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", }; |