diff options
author | attilio <attilio@FreeBSD.org> | 2012-12-05 22:32:12 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2012-12-05 22:32:12 +0000 |
commit | 3145eea56c476d2082b5433a9c1e7b76cf2b15af (patch) | |
tree | b928214909b12e15cdb44b7bc8d96d862ac946f5 /contrib/bind9/lib/isc/unix/file.c | |
parent | 61d867003f55a3bea36175d84810b929ae876619 (diff) | |
download | FreeBSD-src-3145eea56c476d2082b5433a9c1e7b76cf2b15af.zip FreeBSD-src-3145eea56c476d2082b5433a9c1e7b76cf2b15af.tar.gz |
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
Diffstat (limited to 'contrib/bind9/lib/isc/unix/file.c')
0 files changed, 0 insertions, 0 deletions