Re: [PATCH -mm -V8] mm, swap: fix race between swapoff and some swap operations

From: Daniel Jordan
Date: Tue Feb 26 2019 - 18:07:53 EST


On Tue, Feb 26, 2019 at 02:49:05PM +0800, Huang, Ying wrote:
> Do you have time to take a look at this patch?

Hi Ying, is this handling all places where swapoff might cause a task to read
invalid data? For example, why don't other reads of swap_map (for example
swp_swapcount, page_swapcount, swap_entry_free) need to be synchronized like
this?