Re: [PATCH 2/5] kernel/dma: remove unnecessary unmap_kernel_range

Christoph Hellwig
2021-01-27T07:21:06Z

On Tue, Jan 26, 2021 at 05:08:46PM -0500, Konrad Rzeszutek Wilk wrote:
> On Tue, Jan 26, 2021 at 02:54:01PM +1000, Nicholas Piggin wrote:
> > vunmap will remove ptes.
>
> Should there be some ASSERT after the vunmap to make sure that is the
> case?

Not really. removing the PTEs is the whole point of vunmap. Everything
else is just house keeping.