Re: [PATCH -V5b -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-27 Thread Huang, Ying
"Huang, Ying" writes: > From: Huang Ying > > When the swapin is performed, after getting the swap entry information > from the page table, system will swap in the swap entry, without any > lock held to prevent the swap device from being swapoff. This

Re: [PATCH -V5b -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-27 Thread Huang, Ying
"Huang, Ying" writes: > From: Huang Ying > > When the swapin is performed, after getting the swap entry information > from the page table, system will swap in the swap entry, without any > lock held to prevent the swap device from being swapoff. This may > cause the race like below, > > CPU 1

[PATCH -V5b -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-27 Thread Huang, Ying
From: Huang Ying When the swapin is performed, after getting the swap entry information from the page table, system will swap in the swap entry, without any lock held to prevent the swap device from being swapoff. This may cause the race like below, CPU 1

[PATCH -V5b -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-27 Thread Huang, Ying
From: Huang Ying When the swapin is performed, after getting the swap entry information from the page table, system will swap in the swap entry, without any lock held to prevent the swap device from being swapoff. This may cause the race like below, CPU 1 CPU 2 -