Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756757AbaGABHL (ORCPT ); Mon, 30 Jun 2014 21:07:11 -0400 Received: from lgeamrelo02.lge.com ([156.147.1.126]:33607 "EHLO lgeamrelo02.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751565AbaGABHJ (ORCPT ); Mon, 30 Jun 2014 21:07:09 -0400 X-Original-SENDERIP: 10.178.33.69 X-Original-MAILFROM: gioh.kim@lge.com Message-ID: <53B209BA.8010106@lge.com> Date: Tue, 01 Jul 2014 10:07:06 +0900 From: Gioh Kim User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Laura Abbott , Michal Nazarewicz , Marek Szyprowski , linux-mm@kvack.org, linux-kernel@vger.kernel.org CC: Joonsoo Kim , Mel Gorman , =?UTF-8?B?7J206rG07Zi4?= , Hugh Dickins Subject: Re: [RFC] CMA page migration failure due to buffers on bh_lru References: <53A8D092.4040801@lge.com> <53ACAB82.6020201@lge.com> <53B06DD0.8030106@codeaurora.org> In-Reply-To: <53B06DD0.8030106@codeaurora.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 change cpu-lru. Is my concern correct? 2014-06-30 오전 4:49, 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 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 CMA area. >>>> I found the same situation to Laura Abbott's patch descrbing, >>>> https://lkml.org/lkml/2012/8/31/313, >>>> that releases buffer-heads attached at CPU's LRU list. >>>> >>>> If Joonsoo's patch is applied and/or CMA feature is applied more and more, >>>> buffer-heads problem is going to be serious definitely. >>>> >>>> Please look into the Laura's patch again. >>>> I think it must be applied with Joonsoo's patch. >>> >>> Just to make sure I understood you correctly, you're saying Laura's >>> patch at fixes your issue? >>> >> >> Yes, it is. > > I submitted this before and it was suggested that this was more > related to filesystems > > http://marc.info/?l=linaro-mm-sig&m=137645770708817&w=2 > > I never saw more discussion and pushed this into the 'CMA hacks' pile. > So far we've been keeping the patch out of tree and it's useful to know > that others have found the same problem. I'm willing to resubmit the > patch for further discussion. > > Thanks, > Laura > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/