mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* GFP_DMA in sd_revalidate_disk
@ 2007-02-26 16:08 Bernhard Walle
  0 siblings, 0 replies; only message in thread
From: Bernhard Walle @ 2007-02-26 16:08 UTC (permalink / raw)
  To: linux-kernel

Hello,

[since I got no reply in linux-scsi, I'll try here]

Is GFP_DMA really needed in sd_revalidate_disk() in every circumstances?
That's the code:

    buffer = kmalloc(SD_BUF_SIZE, GFP_KERNEL | __GFP_DMA);
    if (!buffer) {
        printk(KERN_WARNING "(sd_revalidate_disk:) Memory allocation "
               "failure.\n");
        goto out;
    }

Or should could the check (sdp->host->unchecked_isa_dma ? __GFP_DMA : 0)
applied here, too?

Thanks!


Regards,
Bernhard

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-26 16:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-26 16:08 GFP_DMA in sd_revalidate_disk Bernhard Walle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome