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

From: Christoph Hellwig
Date: Wed Jan 27 2021 - 02:21:20 EST


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.