Files
mirror_zfs/module/zfs
Matthew Ahrens 4e1d1b4b92 assertion failed in arc_wait_for_eviction()
If the system is very low on memory (specifically,
`arc_free_memory() < arc_sys_free/2`, i.e. less than 1/16th of RAM
free), `arc_evict_state_impl()` will defer wakups.  In this case, the
arc_evict_waiter_t's remain on the list, even though `arc_evict_count`
has been incremented past their `aew_count`.

The problem is that `arc_wait_for_eviction()` assumes that if there are
waiters on the list, the count they are waiting for has not yet been
reached.  However, the deferred wakeups may violate this, causing
`ASSERT(last->aew_count > arc_evict_count)` to fail.

This commit resolves the issue by having new waiters use the greater of
`arc_evict_count` and the last `aew_count`.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Wilson <gwilson@delphix.com>
Reviewed-by: George Amanakis <gamanakis@gmail.com>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
Closes #11285
Closes #11397
2021-01-23 15:47:06 -08:00
..
2020-07-24 21:09:20 -07:00
2020-08-20 10:30:06 -07:00
2019-07-26 10:54:14 -07:00
2020-07-29 16:35:33 -07:00
2020-07-29 16:35:33 -07:00
2019-06-19 09:48:12 -07:00
2020-08-17 15:25:37 -07:00
2020-06-18 12:21:18 -07:00
2019-12-03 09:51:44 -08:00
2020-06-18 12:21:25 -07:00
2020-11-11 11:03:24 -08:00
2020-08-25 08:34:41 -07:00
2020-08-20 10:30:06 -07:00
2020-06-18 12:20:38 -07:00
2020-09-09 10:25:59 -07:00
2020-06-18 12:21:25 -07:00
2020-09-09 10:26:00 -07:00
2020-06-18 12:21:25 -07:00
2017-10-11 16:54:48 -04:00
2020-06-18 12:21:25 -07:00
2019-06-19 09:48:12 -07:00
2020-07-29 16:35:33 -07:00
2020-07-29 16:35:33 -07:00
2020-08-27 16:06:52 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2019-09-02 17:56:41 -07:00
2019-10-09 10:36:03 -07:00
2020-09-09 10:25:59 -07:00
2020-09-09 10:25:59 -07:00
2020-09-09 10:25:59 -07:00
2020-11-22 10:01:43 -08:00
2020-07-29 16:35:33 -07:00
2020-06-18 12:21:25 -07:00
2019-09-02 17:56:41 -07:00
2020-10-16 12:55:56 -07:00
2020-06-18 12:20:38 -07:00
2020-09-09 10:26:00 -07:00
2020-10-16 12:55:56 -07:00
2020-06-18 12:20:38 -07:00
2020-11-11 18:46:22 -08:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:18 -07:00
2020-09-09 10:21:16 -07:00
2020-11-17 12:20:09 -08:00