diff options
author | hsu <hsu@FreeBSD.org> | 2003-01-21 04:05:49 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 2003-01-21 04:05:49 +0000 |
commit | 34eb753e798204e15fdd328a23e44ad5b887931e (patch) | |
tree | e46a1f607600f691d08be4af4c686c8063e61b38 /share | |
parent | 38a289515c2a7fd6073cfac40606014fa4ee7a2c (diff) | |
download | FreeBSD-src-34eb753e798204e15fdd328a23e44ad5b887931e.zip FreeBSD-src-34eb753e798204e15fdd328a23e44ad5b887931e.tar.gz |
Rewrite the SMP filedesc locking in knote_attach() in order to
1. eliminate unnecessary loop which frees and re-allocates
the just allocated array
2. eliminate the newsize recomputation
3. eliminate unnecessary unlock and relock around free
4. correctly match the free with the malloc into M_KQUEUE instead of M_TEMP
5. eliminate conditional assignment of oldlist, which is equivalent to a
simple assignment
6. eliminate the oldlist temporary variable completely
Reviewed by: jhb
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions