commit | 8d4203c72de878c3976adc5db1e09d7ec0618d63 | [log] [tgz] |
---|---|---|
author | Jason Evans <je@facebook.com> | Tue Apr 13 20:53:21 2010 -0700 |
committer | Jason Evans <je@facebook.com> | Tue Apr 13 21:17:18 2010 -0700 |
tree | 913caac2e91cfec9a0507d2ddabac8e0a4bbeee5 | |
parent | 5065156f3f90e421ba2b1a914e47eeb30d83d994 [diff] |
Fix arena chunk purge/dealloc race conditions. Fix arena_chunk_dealloc() to put the new spare in a consistent state before dropping the arena mutex to deallocate the previous spare. Fix arena_run_dalloc() to insert a newly dirtied chunk into the chunks_dirty list before potentially deallocating the chunk, so that dirty page accounting is self-consistent.