Re: [PATCH 1/5] mm, swap: Fix comment in __read_swap_cache_async

2017-03-19 Thread Huang, Ying
Hi, Rafeal, Rafael Aquini writes: > On Fri, Mar 17, 2017 at 02:46:19PM +0800, Huang, Ying wrote: >> From: Huang Ying >> >> The commit cbab0e4eec29 ("swap: avoid read_swap_cache_async() race to >> deadlock while waiting on discard I/O completion") fixed

Re: [PATCH 1/5] mm, swap: Fix comment in __read_swap_cache_async

2017-03-19 Thread Huang, Ying
Hi, Rafeal, Rafael Aquini writes: > On Fri, Mar 17, 2017 at 02:46:19PM +0800, Huang, Ying wrote: >> From: Huang Ying >> >> The commit cbab0e4eec29 ("swap: avoid read_swap_cache_async() race to >> deadlock while waiting on discard I/O completion") fixed a deadlock in >>

Re: [PATCH 1/5] mm, swap: Fix comment in __read_swap_cache_async

2017-03-17 Thread Rafael Aquini
On Fri, Mar 17, 2017 at 02:46:19PM +0800, Huang, Ying wrote: > From: Huang Ying > > The commit cbab0e4eec29 ("swap: avoid read_swap_cache_async() race to > deadlock while waiting on discard I/O completion") fixed a deadlock in > read_swap_cache_async(). Because at that

Re: [PATCH 1/5] mm, swap: Fix comment in __read_swap_cache_async

2017-03-17 Thread Rafael Aquini
On Fri, Mar 17, 2017 at 02:46:19PM +0800, Huang, Ying wrote: > From: Huang Ying > > The commit cbab0e4eec29 ("swap: avoid read_swap_cache_async() race to > deadlock while waiting on discard I/O completion") fixed a deadlock in > read_swap_cache_async(). Because at that time, in swap allocation

[PATCH 1/5] mm, swap: Fix comment in __read_swap_cache_async

2017-03-17 Thread Huang, Ying
From: Huang Ying The commit cbab0e4eec29 ("swap: avoid read_swap_cache_async() race to deadlock while waiting on discard I/O completion") fixed a deadlock in read_swap_cache_async(). Because at that time, in swap allocation path, a swap entry may be set as SWAP_HAS_CACHE,

[PATCH 1/5] mm, swap: Fix comment in __read_swap_cache_async

2017-03-17 Thread Huang, Ying
From: Huang Ying The commit cbab0e4eec29 ("swap: avoid read_swap_cache_async() race to deadlock while waiting on discard I/O completion") fixed a deadlock in read_swap_cache_async(). Because at that time, in swap allocation path, a swap entry may be set as SWAP_HAS_CACHE, then wait for