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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rik van Riel
Date: Monday, May 5, 2008 - 2: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, 5:53 am)
[-mm][PATCH 2/5] introduce get_vm_event(), KOSAKI Motohiro, (Sun May 4, 5:57 am)
[-mm][PATCH 4/5] core of reclaim throttle, KOSAKI Motohiro, (Sun May 4, 5:59 am)
Re: [-mm][PATCH 4/5] core of reclaim throttle, KOSAKI Motohiro, (Sun May 4, 6:12 am)
Re: [-mm][PATCH 0/5] mm: page reclaim throttle v6, KOSAKI Motohiro, (Sun May 4, 7:38 am)
Re: [-mm][PATCH 4/5] core of reclaim throttle, minchan Kim, (Sun May 4, 10:21 pm)
Re: [-mm][PATCH 1/5] fix overflow problem of do_try_to_fre ..., Nishanth Aravamudan, (Mon May 5, 1:12 am)
Re: [-mm][PATCH 4/5] core of reclaim throttle, KOSAKI Motohiro, (Mon May 5, 1:24 am)
Re: [-mm][PATCH 4/5] core of reclaim throttle, minchan Kim, (Mon May 5, 1:32 am)
Re: [-mm][PATCH 2/5] introduce get_vm_event(), Rik van Riel, (Mon May 5, 2:47 pm)
Re: [-mm][PATCH 4/5] core of reclaim throttle, Rik van Riel, (Mon May 5, 2:51 pm)
Re: [-mm][PATCH 4/5] core of reclaim throttle, KOSAKI Motohiro, (Mon May 5, 3:23 pm)
Re: [-mm][PATCH 4/5] core of reclaim throttle, Rik van Riel, (Mon May 5, 5:43 pm)
Re: [-mm][PATCH 4/5] core of reclaim throttle, KOSAKI Motohiro, (Mon May 5, 6:01 pm)