diff options
| author | KAMEZAWA Hiroyuki <[email protected]> | 2010-08-10 18:02:58 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-08-11 08:59:18 -0700 |
| commit | 2bd9bb206b338888b226e70139a25a67d10007f0 (patch) | |
| tree | ac556b1bfa52f06fe2998371d10edec38d5cf2a9 /include/linux/timerqueue.h | |
| parent | 4b53433468c87794b523e4683fbd4e8e8aca1f63 (diff) | |
memcg: clean up waiting move acct
Now, for checking a memcg is under task-account-moving, we do css_tryget()
against mc.to and mc.from. But this is just complicating things. This
patch makes the check easier.
This patch adds a spinlock to move_charge_struct and guard modification of
mc.to and mc.from. By this, we don't have to think about complicated
races arount this not-critical path.
[[email protected]: don't crash on a null memcg being passed]
Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Balbir Singh <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Cc: Balbir Singh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions