Skip to content

Commit

Permalink
mm/slub.c: update the comment about slab frozen
Browse files Browse the repository at this point in the history
Now frozen slab can only be on the per cpu partial list.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Liu Xiang <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Liu Xiang authored and torvalds committed May 14, 2019
1 parent 517f9f1 commit 632b2ef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@
* D. page->frozen -> frozen state
*
* 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
* perform list operations on the page. Other processors may put objects
* onto the freelist but the processor that froze the slab is the only
* one that can retrieve the objects from the page's freelist.
* on any list except per cpu partial list. The processor that froze the
* slab is the one who can perform list operations on the page. Other
* processors may put objects onto the freelist but the processor that
* 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 partial slab counter. If taken then no new slabs may be added or
Expand Down

0 comments on commit 632b2ef

Please sign in to comment.