Re: [PATCH 3/5] mm/swap_state: fix get_shadow_from_swap_cache() race with swapoff

2021-04-13 Thread Miaohe Lin
On 2021/4/13 9:33, Huang, Ying wrote: > Miaohe Lin writes: > >> The function get_shadow_from_swap_cache() can race with swapoff, though >> it's only called by do_swap_page() now. >> >> Fixes: aae466b0052e ("mm/swap: implement workingset detection for anonymous >> LRU") >> Signed-off-by: Miaohe

Re: [PATCH 3/5] mm/swap_state: fix get_shadow_from_swap_cache() race with swapoff

2021-04-12 Thread Huang, Ying
Miaohe Lin writes: > The function get_shadow_from_swap_cache() can race with swapoff, though > it's only called by do_swap_page() now. > > Fixes: aae466b0052e ("mm/swap: implement workingset detection for anonymous > LRU") > Signed-off-by: Miaohe Lin This is unnecessary. The only caller has

[PATCH 3/5] mm/swap_state: fix get_shadow_from_swap_cache() race with swapoff

2021-04-08 Thread Miaohe Lin
The function get_shadow_from_swap_cache() can race with swapoff, though it's only called by do_swap_page() now. Fixes: aae466b0052e ("mm/swap: implement workingset detection for anonymous LRU") Signed-off-by: Miaohe Lin --- mm/swap_state.c | 9 ++--- 1 file changed, 6 insertions(+), 3