# Re: \[PATCH v4 1/4\] lazy tlb: introduce lazy mm refcount helper functions

- From: Andrew Morton \<akpm@linux-foundation.org\>
- Date: 2021-06-08 01:48:19 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/06/1405761
- Thread: https://ratatoskr.run/linux-arch/2021/06/1403264/t.md

```text
On Tue, 08 Jun 2021 11:39:56 +1000 Nicholas Piggin [ref] wrote:

> > Looks like a functional change.  What's happening here?
> 
> That's kthread_use_mm being clever about the lazy tlb mm. If it happened 
> that the kthread had inherited a the lazy tlb mm that happens to be the 
> one we want to use here, then we already have a refcount to it via the 
> lazy tlb ref.
> 
> So then it doesn't have to touch the refcount, but rather just converts
> it from the lazy tlb ref to the returned reference. If the lazy tlb mm
> doesn't get a reference, we can't do that.

Please cover this in the changelog and perhaps a code comment.
```
