login
Header Space

 
 

Re: [-mm][PATCH 4/5] core of reclaim throttle

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: KOSAKI Motohiro <kosaki.motohiro@...>
Cc: LKML <linux-kernel@...>, linux-mm <linux-mm@...>, Andrew Morton <akpm@...>, <kosaki.motohiro@...>
Date: Monday, May 5, 2008 - 5:51 pm

On Sun, 04 May 2008 22:12:12 +0900
KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:


This is a problem.  Processes without __GFP_FS or __GFP_IO cannot wait on
processes that have those flags set in their gfp_mask, and tasks that do
not have __GFP_IO set cannot wait for tasks with it.  This is because the
tasks that have those flags set may grab locks that the tasks without the
flag are holding, causing a deadlock.

The easiest fix would be to only make tasks with both __GFP_FS and __GFP_IO
sleep.  Tasks that call try_to_free_pages without those flags are relatively
rare and should hopefully not cause any issues.

-- 
All Rights Reversed
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[-mm][PATCH 0/5] mm: page reclaim throttle v6, KOSAKI Motohiro, (Sun May 4, 8:53 am)
Re: [-mm][PATCH 0/5] mm: page reclaim throttle v6, KOSAKI Motohiro, (Sun May 4, 10:38 am)
[-mm][PATCH 4/5] core of reclaim throttle, KOSAKI Motohiro, (Sun May 4, 8:59 am)
Re: [-mm][PATCH 4/5] core of reclaim throttle, KOSAKI Motohiro, (Sun May 4, 9:12 am)
Re: [-mm][PATCH 4/5] core of reclaim throttle, Rik van Riel, (Mon May 5, 5:51 pm)
Re: [-mm][PATCH 4/5] core of reclaim throttle, KOSAKI Motohiro, (Mon May 5, 6:23 pm)
Re: [-mm][PATCH 4/5] core of reclaim throttle, Rik van Riel, (Mon May 5, 8:43 pm)
Re: [-mm][PATCH 4/5] core of reclaim throttle, KOSAKI Motohiro, (Mon May 5, 9:01 pm)
Re: [-mm][PATCH 4/5] core of reclaim throttle, minchan Kim, (Mon May 5, 1:21 am)
Re: [-mm][PATCH 4/5] core of reclaim throttle, KOSAKI Motohiro, (Mon May 5, 4:24 am)
Re: [-mm][PATCH 4/5] core of reclaim throttle, minchan Kim, (Mon May 5, 4:32 am)
[-mm][PATCH 2/5] introduce get_vm_event(), KOSAKI Motohiro, (Sun May 4, 8:57 am)
Re: [-mm][PATCH 2/5] introduce get_vm_event(), Rik van Riel, (Mon May 5, 5:47 pm)
Re: [-mm][PATCH 1/5] fix overflow problem of do_try_to_free_..., Nishanth Aravamudan, (Mon May 5, 4:12 am)
speck-geostationary