Re: Dynamic reads without locking.

2003-10-09 Thread Jeffrey Hsu
I'm wondering... Jeffrey Hsu was talking about this at BSDCon03. There is no need to lock data when we just made simple read, for example: mtx_lock(foo_mtx); foo = 5; mtx_unlock(foo_mtx); but only: bar = foo; IMHO this is quite dangerous. Let's

Re: m_freem() in tcp_respond()

2002-08-10 Thread Jeffrey Hsu
m_freem() already checks to see if it gets passed in a NULL pointer. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message