Re: [PATCH next] powerpc/mm: fix _PAGE_PTE breaking swapoff

2016-01-10 Thread Hugh Dickins
On Mon, 11 Jan 2016, Aneesh Kumar K.V wrote: > "Aneesh Kumar K.V" writes: > > Hugh Dickins writes: > > > >> Swapoff after swapping hangs on the G5. That's because the _PAGE_PTE > >> bit, added by set_pte_at(), is not expected by swapoff: so swap ptes > >> cannot be recognized. > >> > >> I'm not

Re: [PATCH next] powerpc/mm: fix _PAGE_PTE breaking swapoff

2016-01-10 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > Hugh Dickins writes: > >> Swapoff after swapping hangs on the G5. That's because the _PAGE_PTE >> bit, added by set_pte_at(), is not expected by swapoff: so swap ptes >> cannot be recognized. >> >> I'm not sure whether a swap pte should or should not have _PAGE_PTE

Re: [PATCH next] powerpc/mm: fix _PAGE_PTE breaking swapoff

2016-01-10 Thread Hugh Dickins
On Mon, 11 Jan 2016, Aneesh Kumar K.V wrote: > Hugh Dickins writes: > > > Swapoff after swapping hangs on the G5. That's because the _PAGE_PTE > > bit, added by set_pte_at(), is not expected by swapoff: so swap ptes > > cannot be recognized. > > > > I'm not sure whether a swap pte should or shou

Re: [PATCH next] powerpc/mm: fix _PAGE_PTE breaking swapoff

2016-01-10 Thread Aneesh Kumar K.V
Hugh Dickins writes: > Swapoff after swapping hangs on the G5. That's because the _PAGE_PTE > bit, added by set_pte_at(), is not expected by swapoff: so swap ptes > cannot be recognized. > > I'm not sure whether a swap pte should or should not have _PAGE_PTE set: > this patch assumes not, and fi

[PATCH next] powerpc/mm: fix _PAGE_PTE breaking swapoff

2016-01-09 Thread Hugh Dickins
Swapoff after swapping hangs on the G5. That's because the _PAGE_PTE bit, added by set_pte_at(), is not expected by swapoff: so swap ptes cannot be recognized. I'm not sure whether a swap pte should or should not have _PAGE_PTE set: this patch assumes not, and fixes set_pte_at() to set _PAGE_PTE