1 Jan 2010 10:45
[PATCH] mm, lockdep: annotate reclaim context to zone reclaim too
KOSAKI Motohiro <kosaki.motohiro <at> jp.fujitsu.com>
2010-01-01 09:45:41 GMT
2010-01-01 09:45:41 GMT
Commit cf40bd16fd (lockdep: annotate reclaim context) introduced reclaim context annotation. But it didn't annotate zone reclaim. This patch do it. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro <at> jp.fujitsu.com> --- mm/vmscan.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 2bbee91..a039e78 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c <at> <at> -2547,6 +2547,7 <at> <at> static int __zone_reclaim(struct zone *zone, gfp_t gfp_mask, unsigned int order) * and RECLAIM_SWAP. */ p->flags |= PF_MEMALLOC | PF_SWAPWRITE; + lockdep_set_current_reclaim_state(gfp_mask); reclaim_state.reclaimed_slab = 0; p->reclaim_state = &reclaim_state; <at> <at> -2590,6 +2591,7 <at> <at> static int __zone_reclaim(struct zone *zone, gfp_t gfp_mask, unsigned int order) p->reclaim_state = NULL; current->flags &= ~(PF_MEMALLOC | PF_SWAPWRITE); + lockdep_clear_current_reclaim_state(); return sc.nr_reclaimed >= nr_pages; } -- -- 1.6.6(Continue reading)
RSS Feed