]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid acquiring Giant for some common light-weight or already MPSAFE
authorrwatson <rwatson@FreeBSD.org>
Fri, 6 Aug 2004 22:00:55 +0000 (22:00 +0000)
committerrwatson <rwatson@FreeBSD.org>
Fri, 6 Aug 2004 22:00:55 +0000 (22:00 +0000)
commit8de3afda37da2a4436323e1948674d9362292258
tree2b1272e7547c99c339628d5fe37f5558451cc939
parent8096ecab6ec9d54c53d56acf2ebad36cb59f72d7
Avoid acquiring Giant for some common light-weight or already MPSAFE
fcntl() operations, including:

  F_DUPFD          dup() alias
  F_GETFD          retrieve close-on-exec flag
  F_SETFD          set close-on-exec flag
  F_GETFL          retrieve file descriptor flags

For the remaining fcntl() operations, do acquire Giant, especially
where we call into fo_ioctl() as a result.  We're not yet ready to
push Giant into fo_ioctl().  Once we do, this can all become quite a
bit prettier.
sys/kern/kern_descrip.c