Re: [RFC] CMA page migration failure due to buffers on bh_lru

2014-07-03 Thread Gioh Kim
Hi, Laura, I has replaced the evict_bh_lrus(bh) with invalidate_bh_lrus() and it is working fine. How about submit new patch with invalidate_bh_lrus()? I would appreciate it. 2014-07-02 오후 2:46, Andrew Morton 쓴 글: On Mon, 30 Jun 2014 19:02:45 -0700 Laura Abbott wrote: On 6/30/2014 6:07 P

Re: [RFC] CMA page migration failure due to buffers on bh_lru

2014-07-01 Thread Andrew Morton
On Mon, 30 Jun 2014 19:02:45 -0700 Laura Abbott wrote: > On 6/30/2014 6:07 PM, Gioh Kim wrote: > > Hi,Laura. > > > > I have a question. > > > > Does the __evict_bh_lru() not need bh_lru_lock()? > > The get_cpu_var() has already preenpt_disable() and can prevent other > > thread. > > But get_cp

Re: [RFC] CMA page migration failure due to buffers on bh_lru

2014-06-30 Thread Laura Abbott
On 6/30/2014 6:07 PM, Gioh Kim wrote: > Hi,Laura. > > I have a question. > > Does the __evict_bh_lru() not need bh_lru_lock()? > The get_cpu_var() has already preenpt_disable() and can prevent other thread. > But get_cpu_var cannot prevent IRQ context such like page-fault. > I think if a page-fau

Re: [RFC] CMA page migration failure due to buffers on bh_lru

2014-06-30 Thread Gioh Kim
Hi,Laura. I have a question. Does the __evict_bh_lru() not need bh_lru_lock()? The get_cpu_var() has already preenpt_disable() and can prevent other thread. But get_cpu_var cannot prevent IRQ context such like page-fault. I think if a page-fault occured and a file is read in IRQ context it can c

Re: [RFC] CMA page migration failure due to buffers on bh_lru

2014-06-29 Thread Laura Abbott
(cc-ing Hugh since he had comments on the patch before) On 6/26/2014 4:23 PM, Gioh Kim wrote: > > > 2014-06-27 오전 12:57, Michal Nazarewicz 쓴 글: >> On Tue, Jun 24 2014, Gioh Kim wrote: >>> Hello, >>> >>> I am trying to apply CMA feature for my platform. >>> My kernel version, 3.10.x, is not allo

Re: [RFC] CMA page migration failure due to buffers on bh_lru

2014-06-26 Thread Gioh Kim
2014-06-27 오전 12:57, Michal Nazarewicz 쓴 글: On Tue, Jun 24 2014, Gioh Kim wrote: Hello, I am trying to apply CMA feature for my platform. My kernel version, 3.10.x, is not allocating memory from CMA area so that I applied a Joonsoo Kim's patch (https://lkml.org/lkml/2014/5/28/64). Now my pl

Re: [RFC] CMA page migration failure due to buffers on bh_lru

2014-06-26 Thread Michal Nazarewicz
On Tue, Jun 24 2014, Gioh Kim wrote: > Hello, > > I am trying to apply CMA feature for my platform. > My kernel version, 3.10.x, is not allocating memory from CMA area so that I > applied > a Joonsoo Kim's patch (https://lkml.org/lkml/2014/5/28/64). > Now my platform can use CMA area effectively.

[RFC] CMA page migration failure due to buffers on bh_lru

2014-06-23 Thread Gioh Kim
Hello, I am trying to apply CMA feature for my platform. My kernel version, 3.10.x, is not allocating memory from CMA area so that I applied a Joonsoo Kim's patch (https://lkml.org/lkml/2014/5/28/64). Now my platform can use CMA area effectively. But I have many failures to allocate memory from