Re: [PATCH] memory leak in sysfs

From: Patrick Mochel
Date: Thu Aug 28 2003 - 18:35:01 EST



> please verify the following patch. We found a memory leak in sysfs. Entries
> in the dentry_cache allocated for objects in sysfs are not freed when the
> objects in sysfs are deleted. This effect is due to inconsistent reference
> counting in sysfs. Furthermore, when calling sysfs_remove_dir the deleted
> directory was not removed from its parent's list of children. The attached
> patch should fix the problems.

Thanks. Martin Schwidefsky had mentioned this to me at OLS (I presume it's
the same problem). I haven't had a chance to look closely at the patch,
but it's in my immediate queue..


Pat


-
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/