Commit 632b2ef0 authored by Liu Xiang's avatar Liu Xiang Committed by Linus Torvalds

mm/slub.c: update the comment about slab frozen

Now frozen slab can only be on the per cpu partial list.

Link: http://lkml.kernel.org/r/1554022325-11305-1-git-send-email-liu.xiang6@zte.com.cnSigned-off-by: default avatarLiu Xiang <liu.xiang6@zte.com.cn>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 517f9f1e
...@@ -58,10 +58,11 @@ ...@@ -58,10 +58,11 @@
* D. page->frozen -> frozen state * D. page->frozen -> frozen state
* *
* If a slab is frozen then it is exempt from list management. It is not * If a slab is frozen then it is exempt from list management. It is not
* on any list. The processor that froze the slab is the one who can * on any list except per cpu partial list. The processor that froze the
* perform list operations on the page. Other processors may put objects * slab is the one who can perform list operations on the page. Other
* onto the freelist but the processor that froze the slab is the only * processors may put objects onto the freelist but the processor that
* one that can retrieve the objects from the page's freelist. * froze the slab is the only one that can retrieve the objects from the
* page's freelist.
* *
* The list_lock protects the partial and full list on each node and * The list_lock protects the partial and full list on each node and
* the partial slab counter. If taken then no new slabs may be added or * the partial slab counter. If taken then no new slabs may be added or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment