mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
Revert "vmalloc: remove BUG_ON due to racy counting of VM_LAZY_FREE"
This reverts commit 21ba0cac4b.
This commit is contained in:
parent
5ad16bf39f
commit
993b15ca04
|
|
@ -555,8 +555,10 @@ static void __purge_vmap_area_lazy(unsigned long *start, unsigned long *end,
|
|||
}
|
||||
rcu_read_unlock();
|
||||
|
||||
if (nr)
|
||||
if (nr) {
|
||||
BUG_ON(nr > atomic_read(&vmap_lazy_nr));
|
||||
atomic_sub(nr, &vmap_lazy_nr);
|
||||
}
|
||||
|
||||
if (nr || force_flush)
|
||||
flush_tlb_kernel_range(*start, *end);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user