Re: [PATCH] 2.4.0-test10-pre6 TLB flush race in establish_pte

Kanoj Sarcar
2000-10-30T21:40:11Z

>
> So while there may be a more elegant solution down the road, I would like
> to see the simple fix put back into 2.4. Here is the patch to essential
> put the code back to the way it was before the S/390 merge. Patch is
> against 2.4.0-test10pre6.
>
> --- linux/mm/memory.c Fri Oct 27 15:26:14 2000
> +++ linux-2.4.0-test10patch/mm/memory.c Fri Oct 27 15:45:54 2000
> @@ -781,8 +781,8 @@
> */
> static inline void establish_pte(struct vm_area_struct * vma, unsigned long address, pte_t *page_table, pte_t entry)
> {
> - flush_tlb_page(vma, address);
> set_pte(page_table, entry);
> + flush_tlb_page(vma, address);
> update_mmu_cache(vma, address, entry);
> }
>

Great, lets do it. Definitely solves one race.

Kanoj