public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* GFP_DMA in sd_revalidate_disk
@ 2007-02-23 16:51 Bernhard Walle
  0 siblings, 0 replies; only message in thread
From: Bernhard Walle @ 2007-02-23 16:51 UTC (permalink / raw)
  To: linux-scsi

Hello,

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-23 16:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-23 16:51 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