[PATCH v2 4/5] mm: add force_free_pages in zap_pte_range

2017-03-15 Thread Aaron Lu
force_flush in zap_pte_range is set in the following 2 conditions: 1 When no more batches can be allocated (either due to no memory or MAX_GATHER_BATCH_COUNT has reached) to store those to-be-freed page pointers; 2 When a TLB_only flush is needed before dropping the PTE lock to avoid a race

[PATCH v2 4/5] mm: add force_free_pages in zap_pte_range

2017-03-15 Thread Aaron Lu
force_flush in zap_pte_range is set in the following 2 conditions: 1 When no more batches can be allocated (either due to no memory or MAX_GATHER_BATCH_COUNT has reached) to store those to-be-freed page pointers; 2 When a TLB_only flush is needed before dropping the PTE lock to avoid a race