Date: Mon, 20 Jan 2003 20:05:49 -0800 (PST) From: Jeffrey Hsu <hsu@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_event.c Message-ID: <200301210405.h0L45nnX015100@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
hsu 2003/01/20 20:05:49 PST Modified files: sys/kern kern_event.c Log: 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 Revision Changes Path 1.53 +11 -23 src/sys/kern/kern_event.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301210405.h0L45nnX015100>