Randall Stewart d2854fa488 This fixes two conditions that can incur when migration
is being done in the callout code and harmonizes the macro
use.:
1) The callout_active() will lie. Basically if a migration
   is occuring and the callout is about to expire and the
   migration has been deferred, the callout_active will no
   longer return true until after the migration. This confuses
   and breaks callers that are doing callout_init(&c, 1); such
   as TCP.
2) The migration code had a bug in it where when migrating, if
   a two calls to callout_reset came in and they both collided with
   the callout on the wheel about to run, then the second call to
   callout_reset would corrupt the list the callout wheel uses
   putting the callout thread into a endless loop.
3) Per imp, I have fixed all the macro occurance in the code that
   were for the most part being ignored.

Phabricator D1711 and looked at by lstewart and jhb and sbruno.
Reviewed by:	kostikbel, imp, adrian, hselasky
MFC after:	3 days
Sponsored by:	Netflix Inc.
2015-02-09 19:19:44 +00:00
..
2015-02-06 23:19:17 +00:00
2015-01-23 21:08:24 +00:00
2014-10-12 18:01:52 +00:00
2015-02-03 12:09:48 +00:00
2014-09-25 19:10:32 +00:00
2015-02-07 23:09:03 +00:00
2015-02-02 16:07:07 +00:00
2014-12-27 07:07:37 +00:00
2014-09-23 06:32:19 +00:00