linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [BK-2.5] Update the generic DMA API to take GFP_ flags on
@ 2003-01-14 15:30 James Bottomley
  2003-01-14 15:30 ` David S. Miller
  0 siblings, 1 reply; 4+ messages in thread
From: James Bottomley @ 2003-01-14 15:30 UTC (permalink / raw)
  To: David S. Miller; +Cc: James.Bottomley, linux-kernel

> What about platforms that can only use GFP_ATOMIC due to
> implementation side issues?  Is that "OK"?

Yes.

A GFP_KERNEL request is safely implemented as GFP_ATOMIC as long as the caller 
checks return for NULL.  for dma_alloc_coherent return checking is a 
requirement because the system may return NULL anyway if it is out of mappings 
even with a GFP_KERNEL flag.

James



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-14 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-14 15:30 [BK-2.5] Update the generic DMA API to take GFP_ flags on James Bottomley
2003-01-14 15:30 ` David S. Miller
2003-01-14 15:51   ` James Bottomley
2003-01-14 15:51   ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).