Gleb Smirnoff
a68cc38879
Mechanical cleanup of epoch(9) usage in network stack.
...
- Remove macros that covertly create epoch_tracker on thread stack. Such
macros a quite unsafe, e.g. will produce a buggy code if same macro is
used in embedded scopes. Explicitly declare epoch_tracker always.
- Unmask interface list IFNET_RLOCK_NOSLEEP(), interface address list
IF_ADDR_RLOCK() and interface AF specific data IF_AFDATA_RLOCK() read
locking macros to what they actually are - the net_epoch.
Keeping them as is is very misleading. They all are named FOO_RLOCK(),
while they no longer have lock semantics. Now they allow recursion and
what's more important they now no longer guarantee protection against
their companion WLOCK macros.
Note: INP_HASH_RLOCK() has same problems, but not touched by this commit.
This is non functional mechanical change. The only functionally changed
functions are ni6_addrs() and ni6_store_addrs(), where we no longer enter
epoch recursively.
Discussed with: jtl, gallatin
2019-01-09 01:11:19 +00:00
..
2018-12-15 17:01:16 +00:00
2018-07-11 14:54:56 +00:00
2019-01-09 01:11:19 +00:00
2018-11-22 20:05:57 +00:00
2018-10-30 20:08:48 +00:00
2019-01-09 01:11:19 +00:00
2018-11-17 16:08:36 +00:00
2018-05-02 19:36:29 +00:00
2019-01-09 01:11:19 +00:00
2018-05-24 23:21:23 +00:00
2018-06-16 08:26:23 +00:00
2018-10-23 13:11:45 +00:00
2018-04-06 17:35:35 +00:00
2018-09-06 14:15:03 +00:00
2018-08-22 21:23:32 +00:00
2019-01-09 01:11:19 +00:00
2019-01-09 01:11:19 +00:00
2019-01-09 01:11:19 +00:00
2018-06-13 23:19:54 +00:00
2018-04-06 17:35:35 +00:00
2018-05-29 12:32:08 +00:00
2018-05-23 21:02:14 +00:00
2019-01-09 01:11:19 +00:00
2018-07-01 08:37:07 +00:00
2019-01-09 01:11:19 +00:00
2019-01-09 01:11:19 +00:00
2018-10-21 18:39:34 +00:00
2018-10-21 17:55:26 +00:00
2018-09-05 13:59:36 +00:00
2018-12-04 16:12:43 +00:00
2018-10-23 13:11:45 +00:00
2019-01-09 01:11:19 +00:00
2018-07-24 16:35:52 +00:00
2019-01-09 01:11:19 +00:00
2019-01-09 01:11:19 +00:00
2019-01-09 01:11:19 +00:00
2019-01-09 01:11:19 +00:00
2018-11-16 18:32:48 +00:00
2018-11-16 18:32:48 +00:00
2018-07-01 08:37:07 +00:00
2018-06-05 20:51:01 +00:00
2018-11-22 20:49:41 +00:00
2018-09-30 21:54:02 +00:00
2018-07-19 20:16:33 +00:00
2018-10-01 14:05:31 +00:00
2018-09-18 10:53:07 +00:00
2019-01-09 01:11:19 +00:00
2018-07-19 20:11:14 +00:00
2018-07-19 20:16:33 +00:00
2018-08-21 13:25:32 +00:00
2018-07-19 20:11:14 +00:00
2018-08-22 21:23:32 +00:00
2018-07-19 20:16:33 +00:00
2018-08-21 13:25:32 +00:00
2018-07-19 20:16:33 +00:00
2018-10-01 14:05:31 +00:00
2018-07-19 20:16:33 +00:00
2018-08-23 19:10:45 +00:00
2019-01-04 17:31:50 +00:00
2018-07-19 20:16:33 +00:00
2018-08-21 13:25:32 +00:00
2018-07-19 20:16:33 +00:00
2018-08-13 13:58:45 +00:00
2018-07-19 20:11:14 +00:00
2018-07-19 20:16:33 +00:00
2018-05-19 05:56:21 +00:00
2018-11-22 20:49:41 +00:00
2018-10-26 21:04:17 +00:00
2018-08-21 13:25:32 +00:00
2018-07-19 20:16:33 +00:00
2018-08-21 13:25:32 +00:00
2018-07-19 20:16:33 +00:00
2018-07-19 20:16:33 +00:00
2018-09-26 10:24:50 +00:00
2018-08-21 13:25:32 +00:00
2018-12-15 15:06:22 +00:00
2018-07-24 16:35:52 +00:00
2018-06-23 06:53:53 +00:00
2018-07-24 16:35:52 +00:00
2018-10-01 10:46:00 +00:00
2018-07-04 02:47:16 +00:00
2018-10-18 19:21:18 +00:00
2018-04-10 15:51:37 +00:00
2018-08-20 12:43:18 +00:00
2018-06-23 06:53:53 +00:00
2018-04-03 01:08:54 +00:00
2018-11-22 19:49:52 +00:00
2018-12-20 16:05:30 +00:00
2018-04-03 13:54:38 +00:00
2018-11-22 20:49:41 +00:00
2018-11-01 11:41:40 +00:00
2018-10-18 19:21:18 +00:00
2018-07-04 02:47:16 +00:00
2018-07-04 02:47:16 +00:00
2018-07-30 21:13:42 +00:00
2018-11-30 10:50:07 +00:00
2018-08-20 12:43:18 +00:00
2018-06-07 18:18:13 +00:00
2018-08-16 23:46:38 +00:00
2018-04-03 01:08:54 +00:00
2018-11-22 20:49:41 +00:00
2018-07-31 22:56:03 +00:00