slub: Fix slub_lock down/up imbalance
Subsystems (2)
PATCH 1/1 slub: Fix slub_lock down/up imbalance
There are two places, that do not release the slub_lock.
Respective bugs were introduced by sysfs changes ab4d5ed5 (slub: Enable sysfs support for !CONFIG_SLUB_DEBUG) and 2bce6485 ( slub: Allow removal of slab caches during boot).
---
mm/slub.c +2 -1
@@ -3273,9 +3273,9 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size,kfree (n);kfree (s); } +err:up_write (&slub_lock); -err:if (flags &SLAB_PANIC )panic ("Cannot create slabcache %s\n" , name);else
@@ -3862,6 +3862,7 @@ static ssize_t show_slab_objects(struct kmem_cache *s, x +=sprintf (buf + x," N%d=%lu" , node, nodes[node]);#endif +up_read (&slub_lock);kfree (nodes);return x +sprintf (buf + x,"\n" ); }
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 1 line · Pavel Emelyanov
There are two places, that do not release the
slub_lock.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 6 lines · Christoph Lameter
Quoted 1 line · Pavel Emelyanov
There are two places, that do not release the
slub_lock.
Thanks!
Gentlemen, I believe you've been very busy these days, but can you please share with me what are your plans about this patch?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Hi Pavel,
Quoted 5 lines · Pavel Emelyanov
Quoted 4 lines · Christoph Lameter
Quoted 1 line · Pavel Emelyanov
There are two places, that do not release the
slub_lock.
Quoted 7 lines
Quoted 2 lines
Acked-by Christoph Lameter<[email protected]>Thanks!
Gentlemen, I believe you've been very busy these days, but can you please share with me what are your plans about this patch?
Sorry for not being explicit, it's sitting in for-next and I'll send it to Linus in the next batch:
http://git.kernel.org/?p=linux/kernel/git/penberg/slab-2.6.git;a=shortlog;h=refs/heads/for-next
Pekka
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 2 lines · Pavel Emelyanov
Gentlemen, I believe you've been very busy these days, but can you please share with me what are your plans about this patch?
Pekka is going to merge it as far as I can tell.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>