Skip to contentSkip to conversation

Incompatibilities of kmem_cache_create

DISCUSSION werner 3 participants 3 messages Jul 21, 2007 – Jul 24, 2007

lore
Share & tools
lore

werner

author
#0 lore raw

Of the kernel 2.6.22-git15 of this night, kmem_cache_create is not compatible and causes compiling errors of some fundamental programs. Before, this error didnt occur.

At least this happened on compiling the externel modules for btrfs and ndiskwrapper. Principally the compatibility of the Kernel with older and new versions of the file systems have to be observed very good, for the reliability to can read dates.

Thus this should be checked, and corrected

Werner Landgraf

[email protected]

www.copaya.yi.org

#1 lore raw
Quoted 4 lines · werner

Of the kernel 2.6.22-git15 of this night, kmem_cache_create is not compatible and causes compiling errors of some fundamental programs. Before, this error didnt occur.

Slab destructors haven't been supported in the kernel for ages, anything that's relying on them to work out-of-tree is fundamentally broken.

Quoted 7 lines

At least this happened on compiling the externel modules for btrfs and
ndiskwrapper. Principally the compatibility of the Kernel with older
and new versions of the file systems have to be observed very good, for the reliability to can read dates.

Thus this should be checked, and corrected

Indeed it should. You can correct this by removing the extraneous NULL parameter for the slab dtor from the kmem_cache_create() callsite in the out-of-tree code. All of the in-tree users were already converted.

#2 lore raw
Quoted 7 lines · Paul Mundt
Quoted 4 lines · werner

Of the kernel 2.6.22-git15 of this night, kmem_cache_create is not compatible and causes compiling errors of some fundamental programs. Before, this error didnt occur.

Slab destructors haven't been supported in the kernel for ages, anything that's relying on them to work out-of-tree is fundamentally broken.

Slab destructors were supported and used in Linux kernels up to version 2.6.20. They were removed late in the 2.6.21 merge cycle.