diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-09-29 12:02:14 (GMT) |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2010-10-02 07:47:53 (GMT) |
commit | 3478973dedee5e957c45dc93c11d12dc3f733ee0 (patch) | |
tree | a90878879ef689df232b9ad9288b8b5052b78651 /mm | |
parent | a5dd5c117cbf620378d693963ffc42239297fac4 (diff) | |
download | linux-3478973dedee5e957c45dc93c11d12dc3f733ee0.tar.xz |
slub: Add lock release annotation
The unfreeze_slab() releases page's PG_locked bit but was missing
proper annotation. The deactivate_slab() needs to be marked also
since it calls unfreeze_slab() without grabbing the lock.
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1446,6 +1446,7 @@ static struct page *get_partial(struct kmem_cache *s, gfp_t flags, int node) * On exit the slab lock will have been dropped. */ static void unfreeze_slab(struct kmem_cache *s, struct page *page, int tail) + __releases(bitlock) { struct kmem_cache_node *n = get_node(s, page_to_nid(page)); @@ -1488,6 +1489,7 @@ static void unfreeze_slab(struct kmem_cache *s, struct page *page, int tail) * Remove the cpu slab */ static void deactivate_slab(struct kmem_cache *s, struct kmem_cache_cpu *c) + __releases(bitlock) { struct page *page = c->page; int tail = 1; |