# Re: \[PATCH v6 02/17\] ima: Define ns\_status for storing namespaced iint data

- From: Stefan Berger \<stefanb@linux.ibm.com\>
- Date: 2021-12-16 04:01:09 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2021/12/1610394
- Thread: https://ratatoskr.run/linux-integrity/2021/12/1604371/t.md

```text

On 12/15/21 22:53, Mimi Zohar wrote:
> On Wed, 2021-12-15 at 21:37 -0500, Stefan Berger wrote:
>
>>> before it is re-used.
>> KMEM_CACHE + kmem_cache_alloc/zalloc() are pretty common. What kind of
>> comment would be helpful here?
> The original reason for using kmem_cache_create() with init_once and
> deferring memory cleanup to free was for performance.  Using
> KMEM_CACHE() and kmem_cache_zalloc() instead could be for simplicity.
> The comment should note the change.

/* use KMEM_CACHE for simplicity */ ?


>
> Mimi
>
```
