KAMEZAWA Hiroyuki wrote:
The logic of uncharging is
- decrement refcnt - lock page cgroup - remove page cgroup.
But the logic of charging is
- lock page cgroup - increment refcnt - return.
Then, one charge will be added to a page_cgroup under being removed.
This makes no big trouble
The logic of uncharging is
- decrement refcnt - lock page cgroup - remove page cgroup.
But the logic of charging is
- lock page cgroup - increment refcnt - return.
Then, one charge will be added to a page_cgroup under being removed.
This makes no big trouble (like panic) but one charge
On Wed, 10 Oct 2007 07:31:38 +0900 (JST)
[EMAIL PROTECTED] (YAMAMOTO Takashi) wrote:
- atomic_inc(pc-ref_cnt);
- goto done;
+ if (unlikely(!atomic_inc_not_zero(pc-ref_cnt))) {
+ /* this page is under being uncharge ? */
+