Re: [PATCH 2/2] mm/swap: Remove lock_initialized flag from swap_slots_cache

2017-07-24 Thread Tim Chen
On 07/23/2017 07:15 PM, Huang, Ying wrote: > Hi, Tim, > > Tim Chen writes: > >> We will only reach the lock initialization code >> in alloc_swap_slot_cache when the cpu's swap_slots_cache's slots >> have not been allocated and swap_slots_cache has not been

Re: [PATCH 2/2] mm/swap: Remove lock_initialized flag from swap_slots_cache

2017-07-24 Thread Tim Chen
On 07/23/2017 07:15 PM, Huang, Ying wrote: > Hi, Tim, > > Tim Chen writes: > >> We will only reach the lock initialization code >> in alloc_swap_slot_cache when the cpu's swap_slots_cache's slots >> have not been allocated and swap_slots_cache has not been initialized >> previously. So the

Re: [PATCH 2/2] mm/swap: Remove lock_initialized flag from swap_slots_cache

2017-07-23 Thread Huang, Ying
Hi, Tim, Tim Chen writes: > We will only reach the lock initialization code > in alloc_swap_slot_cache when the cpu's swap_slots_cache's slots > have not been allocated and swap_slots_cache has not been initialized > previously. So the lock_initialized check is

Re: [PATCH 2/2] mm/swap: Remove lock_initialized flag from swap_slots_cache

2017-07-23 Thread Huang, Ying
Hi, Tim, Tim Chen writes: > We will only reach the lock initialization code > in alloc_swap_slot_cache when the cpu's swap_slots_cache's slots > have not been allocated and swap_slots_cache has not been initialized > previously. So the lock_initialized check is redundant and unnecessary. >

[PATCH 2/2] mm/swap: Remove lock_initialized flag from swap_slots_cache

2017-07-21 Thread Tim Chen
We will only reach the lock initialization code in alloc_swap_slot_cache when the cpu's swap_slots_cache's slots have not been allocated and swap_slots_cache has not been initialized previously. So the lock_initialized check is redundant and unnecessary. Remove lock_initialized flag from

[PATCH 2/2] mm/swap: Remove lock_initialized flag from swap_slots_cache

2017-07-21 Thread Tim Chen
We will only reach the lock initialization code in alloc_swap_slot_cache when the cpu's swap_slots_cache's slots have not been allocated and swap_slots_cache has not been initialized previously. So the lock_initialized check is redundant and unnecessary. Remove lock_initialized flag from