[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240903080257.GA4746@lst.de>
Date: Tue, 3 Sep 2024 10:02:57 +0200
From: Christoph Hellwig <hch@....de>
To: Chen Yu <yu.c.chen@...el.com>
Cc: Christoph Hellwig <hch@....de>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Robin Murphy <robin.murphy@....com>, Baolu Lu <baolu.lu@...el.com>,
Kevin Tian <kevin.tian@...el.com>, iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] dma-direct: fix the page free when it is not
addressable
On Tue, Sep 03, 2024 at 04:00:46PM +0800, Chen Yu wrote:
> Thanks for taking a look. Your are right, the pfn will be checked in
> cma_pages_valid() to see it is within the CMA range, if not, it prints
> some messages and return false, finally falls into __free_pages(). From
> the functional point of view, there is no bug. From the efficiency point
> of view(extra checks/printed message), and from the code readability to
> avoid confusing, maybe we can refine it?
I'll apply the patch with an updated commit log, thanks.
Powered by blists - more mailing lists