]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fixup r243901:
authorattilio <attilio@FreeBSD.org>
Wed, 5 Dec 2012 22:32:12 +0000 (22:32 +0000)
committerattilio <attilio@FreeBSD.org>
Wed, 5 Dec 2012 22:32:12 +0000 (22:32 +0000)
commit3145eea56c476d2082b5433a9c1e7b76cf2b15af
treeb928214909b12e15cdb44b7bc8d96d862ac946f5
parent61d867003f55a3bea36175d84810b929ae876619
Fixup r243901:
- As the comment report, CALLOUT_LOCAL_ALLOC cannot be checked
  directly from the callout flags but might be checked by a cached
  value.  Hence, do so before to actually remove the callout, when
  needed, in softclock_call_cc().
- In softclock_call_cc() also add a comment in the waiting and deferred
  migration case explaining that the dereference should be safe
  because of the migration dereference invariants.

Additively:
- In softclock_call_cc(), for the deferred migration case, move all the
  accesses to callout structure after the comment stating the callout
  must not be destroyed.
- For consistency with this last tweak, use cached c_flags for the
  KASSERT() in the deferred migration case.  It is not strictly necessary
  but this way all the callout accesses happen after the above mentioned
  comment, improving consistency.

Pointy hat to: me
Sponsored by: Isilon Systems / EMC Corporation
Reviewed by: kib
MFC after: 2 weeks
X-MFC: 243901
sys/kern/kern_timeout.c