George Amanakis
37c22948e5
Reset l2ad_hand and l2ad_first in l2arc_evict
...
Increasing l2arc_write_size or l2arc_write_boost can result in
l2arc_write_buffers() not having enough space to perform its writes and
panic zio_write_phys().
Instead of resetting l2ad_hand to l2ad_start at the end of
l2arc_write_buffers() and not taking into account a possible
user-mediated increase of l2arc_write_max, we do this in l2arc_evict(),
right after l2arc_write_size() has run. If there is not enough space to
evict (ie we will exceed l2ad_end) we evict to the end of the device,
reset l2ad_hand to l2ad_start, set l2ad_first to 0 and iterate
l2arc_evict(). We avoid infinite iteration of l2arc_evict() by making
sure in l2arc_write_size() that l2ad_start + size does not exceed
l2ad_end.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #10154
2020-03-31 10:46:48 -07:00
..
2020-02-06 13:21:06 -08:00
2020-03-31 10:46:48 -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
2019-10-09 10:36:03 -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-02-24 15:38:22 -08: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-02-26 16:09:17 -08:00
2019-10-09 10:36:03 -07:00
2019-10-09 10:36:03 -07:00
2019-12-05 12:37:00 -08:00
2020-02-26 16:09:17 -08: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
2019-12-05 12:37:00 -08: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
2019-08-13 21:24:43 -06: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-02-10 13:11:30 -08:00
2020-03-04 15:07:11 -08: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
2019-12-05 12:37:00 -08: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-02-26 16:09:17 -08: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-02-28 14:50:32 -08: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