Re: [PATCH 1/10] sysfs: fix kmem_cache_free(NULL)

From: Pekka J Enberg
Date: Tue Jul 17 2007 - 03:04:59 EST


2007/7/17, Greg KH <gregkh@xxxxxxx>:
> > Why not just allow kmem_cache_free() to allow NULL like other functions
> > in the kernel?

On Tue, 17 Jul 2007, Akinobu Mita wrote:
> It seems there was discussion about this and no conclusion
> yet?

IIRC the patch was rejected by relevant maintainers because it slows
down kmem_cache_free() which is presumably bad for some hot-paths...

Pekka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/