On 05/15/2012 12:15 AM, Christoph Lameter wrote:
Use the mutex definition from SLAB and make it the common way to take a sleeping lock. This has the effect of using a mutex instead of a rw semaphore for SLUB.
This is very good, IMHO.
SLOB gains the use of a mutex for kmem_cache_create serialization. Not needed now but SLOB may acquire some more features later (like slabinfo / sysfs support) through the expansion of the common code that will need this.
Now, won't this hurt performance of the slob allocator, that seems to gain its edge from its simplicity ?
But I'll let whoever cares comment on that. From where I stand:
Signed-off-by: Christoph Lameter<cl@xxxxxxxxx>
Reviewed-by: Glauber Costa <glommer@xxxxxxxxxxxxx> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>