summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>2003-01-21 04:05:49 +0000
committerhsu <hsu@FreeBSD.org>2003-01-21 04:05:49 +0000
commit34eb753e798204e15fdd328a23e44ad5b887931e (patch)
treee46a1f607600f691d08be4af4c686c8063e61b38 /share
parent38a289515c2a7fd6073cfac40606014fa4ee7a2c (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud