Re: [PATCH] mm: Pin address_space before dereferencing it while isolating an LRU page

2018-01-22 Thread Minchan Kim
On Thu, Jan 04, 2018 at 10:25:12AM +, Mel Gorman wrote: > Minchan Kim asked the following question -- what locks protects > address_space destroying when race happens between inode trauncation and > __isolate_lru_page? Jan Kara clarified by describing the race as follows > > CPU1

[PATCH] mm: Pin address_space before dereferencing it while isolating an LRU page

2018-01-04 Thread Mel Gorman
Minchan Kim asked the following question -- what locks protects address_space destroying when race happens between inode trauncation and __isolate_lru_page? Jan Kara clarified by describing the race as follows CPU1CPU2 truncate(inode)