Re: [PATCH] mm: mempool: Factor out mempool_refill()

2015-12-15 Thread Zhi Wang
Hi Johannes: Thanks for the reply. In the end of the mempool_resize(), it will call the mempool_refill() to do the rest of the work. So this is not one of the "no-caller" case. If you insist this is a "no-caller" case, perhaps I should change it to a "static" function without exposing a

Re: [PATCH] mm: mempool: Factor out mempool_refill()

2015-12-15 Thread Johannes Weiner
On Mon, Dec 14, 2015 at 11:09:43AM +, Wang, Zhi A wrote: > This patch factors out mempool_refill() from mempool_resize(). It's reasonable > that the mempool user wants to refill the pool immdiately when it has chance > e.g. inside a sleepible context, so that next time in the IRQ context the

Re: [PATCH] mm: mempool: Factor out mempool_refill()

2015-12-15 Thread Johannes Weiner
On Mon, Dec 14, 2015 at 11:09:43AM +, Wang, Zhi A wrote: > This patch factors out mempool_refill() from mempool_resize(). It's reasonable > that the mempool user wants to refill the pool immdiately when it has chance > e.g. inside a sleepible context, so that next time in the IRQ context the

Re: [PATCH] mm: mempool: Factor out mempool_refill()

2015-12-15 Thread Zhi Wang
Hi Johannes: Thanks for the reply. In the end of the mempool_resize(), it will call the mempool_refill() to do the rest of the work. So this is not one of the "no-caller" case. If you insist this is a "no-caller" case, perhaps I should change it to a "static" function without exposing a

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-14 Thread Wang, Zhi A
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-14 Thread Wang, Zhi A
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-13 Thread Wang, Zhi A
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-13 Thread Wang, Zhi A
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-12 Thread Zhi Wang
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-12 Thread Zhi Wang
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-11 Thread Zhi Wang
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-11 Thread Zhi Wang
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-10 Thread Zhi Wang
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-10 Thread Zhi Wang
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the