[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20101107215030.007259800@cmpxchg.org>
Date: Sun, 7 Nov 2010 23:14:35 +0100
From: Johannes Weiner <hannes@...xchg.org>
To: Greg Thelen <gthelen@...gle.com>
Cc: Minchan Kim <minchan.kim@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Dave Young <hidave.darkstar@...il.com>,
Andrea Righi <arighi@...eler.com>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
Daisuke Nishimura <nishimura@....nes.nec.co.jp>,
Balbir Singh <balbir@...ux.vnet.ibm.com>,
Wu Fengguang <fengguang.wu@...el.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [patch 0/4] memcg: variable type fixes
Hi Greg,
it is not the res counter primitives, these are our own counters. We
have to keep signed types for most counters, as the per-cpu counter
folding can race and we end up with negative values.
The fix for the original issue is in patch 1. There are no casts
needed, the range is checked to be sane and then converted to the
unsigned type through assignment.
Patch 2, also a type fix, ensures we catch accounting races properly.
It is unrelated, but also important.
Patch 3 implements the idea that we only have to used signed types for
_some_ of the counters, but not for constant event counters where the
sign-bit would be a waste.
Patch 4 converts our fundamental page statistics counters to native
words as these should be wide enough for the expected values.
Hannes
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists