Matthew Ahrens
32d805c3e2
Use a struct to organize metaslab-group-allocator fields
...
Each metaslab group (of which there is one per top-level vdev) has
several (4, by default) "metaslab group allocators". Each "allocator"
has its own metaslab that it prefers to allocate from (the "primary"
allocator), and each can perform allocations concurrently with the other
allocators. In addition to the primary metaslab, there are several
other fields that need to be tracked separately for each allocator.
These are currently stored as several arrays in the metaslab_group_t,
each array indexed by allocator number.
This change organizes all the metaslab-group-allocator-specific fields
into a new struct, metaslab_group_allocator_t. The metaslab_group_t now
needs only one array indexed by the allocator number - which contains
the metaslab_group_allocator_t's.
Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
Closes #10213
2020-04-22 10:26:56 -07:00
..
2020-02-06 13:21:06 -08:00
2020-04-17 09:27:40 -07:00
2017-11-04 13:25:13 -07:00
2019-07-26 10:54:14 -07:00
2019-09-13 18:09:06 -07:00
2019-06-19 09:48:12 -07:00
2019-06-19 09:48:12 -07:00
2019-12-05 12:37:00 -08:00
2019-09-03 12:12:31 -07:00
2019-09-05 14:49:49 -07:00
2020-03-27 09:11:22 -07:00
2020-02-26 16:09:17 -08:00
2020-04-15 11:14:47 -07:00
2019-12-03 09:51:44 -08:00
2019-09-05 14:49:49 -07:00
2020-03-12 10:55:02 -07:00
2020-03-17 10:30:33 -07:00
2020-03-12 10:55:02 -07:00
2020-03-12 10:55:02 -07:00
2019-09-05 14:49:49 -07:00
2020-02-26 16:09:17 -08:00
2019-09-05 14:49:49 -07:00
2020-04-08 10:30:27 -07:00
2020-02-05 11:07:19 -08:00
2020-03-12 10:25:56 -07:00
2020-02-26 16:09:17 -08:00
2020-03-12 10:55:02 -07:00
2020-04-01 10:02:06 -07:00
2019-10-09 10:36:03 -07:00
2019-10-09 10:36:03 -07:00
2020-04-01 10:02:06 -07:00
2020-04-01 10:02:06 -07:00
2019-12-11 11:53:57 -08:00
2020-02-26 16:09:17 -08:00
2020-03-12 10:52:03 -07:00
2019-09-02 17:56:41 -07:00
2019-10-10 09:47:06 -07:00
2016-11-29 14:34:27 -08:00
2020-02-18 11:22:56 -08:00
2019-09-06 11:26:26 -07:00
2017-10-11 16:54:48 -04:00
2019-10-01 13:17:32 -07:00
2015-01-16 14:41:26 -08:00
2020-03-27 09:11:22 -07:00
2020-04-22 10:26:56 -07:00
2020-02-28 14:49:44 -08:00
2019-11-01 13:13:43 -07:00
2019-06-19 09:48:12 -07:00
2019-07-15 13:57:56 -07:00
2019-10-11 10:13:21 -07:00
2020-04-13 10:51:44 -07:00
2019-11-01 13:13:43 -07:00
2019-12-05 12:37:00 -08:00
2019-09-06 11:26:26 -07:00
2016-11-29 14:34:27 -08:00
2010-08-31 13:41:58 -07:00
2020-02-26 16:09:17 -08:00
2019-11-21 09:32:57 -08:00
2019-09-02 17:56:41 -07:00
2020-03-02 09:43:30 -08:00
2019-09-05 14:49:49 -07:00
2020-04-07 10:06:22 -07:00
2020-04-22 10:26:56 -07:00
2019-10-09 10:36:03 -07:00
2019-10-09 10:36:03 -07:00
2018-06-06 09:35:59 -07:00
2018-06-06 09:35:59 -07:00
2020-04-15 11:14:47 -07:00
2019-03-21 12:47:57 -07:00
2019-10-09 10:36:03 -07:00
2019-12-05 12:37:00 -08:00
2019-07-10 15:54:49 -07:00
2019-12-05 12:37:00 -08:00
2019-12-05 12:37:00 -08:00
2020-02-27 09:31:02 -08:00
2019-11-21 09:32:57 -08:00
2019-12-26 10:57:05 -08:00
2019-06-20 18:29:02 -07:00
2019-10-09 10:36:03 -07:00
2019-12-17 19:34:52 -08:00
2019-07-12 09:31:20 -07:00
2019-07-12 09:31:20 -07:00
2019-09-05 09:34:54 -07:00
2019-09-05 09:34:54 -07:00
2019-10-10 09:45:37 -07:00
2020-02-03 10:52:41 -08:00
2020-01-23 11:01:24 -08:00
2020-01-23 11:01:24 -08:00
2019-08-21 09:29:23 -07:00
2019-10-10 09:45:37 -07:00
2019-09-05 09:34:54 -07:00
2020-01-23 11:01:24 -08:00
2019-10-09 10:36:03 -07:00
2019-12-26 10:50:23 -08:00
2019-06-20 18:29:02 -07:00
2020-03-04 15:07:11 -08:00
2020-04-10 10:33:35 -07:00
2020-02-26 16:09:17 -08:00
2019-10-09 10:36:03 -07:00
2019-09-05 14:49:49 -07:00
2020-02-26 16:09:17 -08:00
2018-02-08 15:29:24 -08:00
2019-09-02 17:56:41 -07:00
2020-02-14 13:41:42 -08:00
2020-02-26 16:09:17 -08:00
2020-02-26 16:09:17 -08:00
2019-12-05 12:37:00 -08:00
2019-09-02 17:56:41 -07:00
2018-11-08 16:47:24 -08:00
2019-12-11 12:12:08 -08:00
2020-04-20 10:12:48 -07:00
2020-02-28 14:53:18 -08:00
2020-02-28 14:50:32 -08:00
2019-12-11 12:12:08 -08:00
2018-03-04 17:34:51 -08:00
2020-01-22 17:55:56 -08:00
2019-11-06 10:54:25 -08:00
2019-10-02 09:15:12 -07:00
2019-11-11 09:27:59 -08:00
2019-12-05 13:10:29 -08:00
2019-12-10 15:51:58 -08:00
2019-12-05 12:37:00 -08:00
2020-03-27 09:11:22 -07:00
2018-02-09 10:08:05 -08:00
2019-11-01 13:13:43 -07:00
2019-07-26 10:54:14 -07:00
2020-02-03 09:33:14 -08:00