[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wiYxY9H-XDgawJd+Y4AM4qtK=7RQZ_GhswcUSYWw=eckA@mail.gmail.com>
Date: Sat, 12 Jan 2019 10:27:58 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Christoph Hellwig <hch@...radead.org>
Cc: iommu@...ts.linux-foundation.org,
Linux List Kernel Mailing <linux-kernel@...r.kernel.org>
Subject: Re: [GIT PULL] remove dma_zalloc_coherent
On Sat, Jan 12, 2019 at 10:14 AM Christoph Hellwig <hch@...radead.org> wrote:
>
> Lets see if this works better as a pull request than the
> plain patches:
So I'm still debating this myself, which is why I haven't reacted.
The reason I'm not entirely sure this makes sense is that not every
user actually mmaps things into user space.
And now if somebody for some reason doesn't want the overhead, there
is really *no* way to say that.
Maybe nobody cares. But from what I can tell, the mmap case is
actually really quite rare (well, at least the regular
"dma_mmap_attrs/coherent()" kind).
I'd be happier if there at least was an interface to specify "yes, I
want zeroing". But there isn't. You did not, for example, just make
__GFP_ZERO work. No. You just said "GFP_ZERO hasn't worked reliably,
so we had that other interface, and now we're doing it
unconditionally, so we can remove the other interface".
This all *despite* the fact that as far as I can tell, 95% of the
users don't actually need or care about zeroing and don't really want
it.
So explain that.
Linus
Powered by blists - more mailing lists