[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47D1AE64.2000405@pobox.com>
Date: Fri, 07 Mar 2008 16:06:44 -0500
From: Jeff Garzik <jgarzik@...ox.com>
To: Andi Kleen <andi@...stfloor.org>
CC: axboe@...nel.dk, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [2/7] Convert open coded reference in libata to q->bounce_gfp
to blk_kmalloc
Andi Kleen wrote:
> Only difference in behaviour is that GFP_NOIO is not passed here now,
> but I think that is ok in this case because this is not in a write out path.
>
> Cc: jgarzik@...ox.com
>
> Signed-off-by: Andi Kleen <ak@...e.de>
>
> ---
> drivers/ata/libata-scsi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux/drivers/ata/libata-scsi.c
> ===================================================================
> --- linux.orig/drivers/ata/libata-scsi.c
> +++ linux/drivers/ata/libata-scsi.c
> @@ -868,7 +868,7 @@ static int ata_scsi_dev_config(struct sc
> blk_queue_dma_pad(sdev->request_queue, ATA_DMA_PAD_SZ - 1);
>
> /* configure draining */
> - buf = kmalloc(ATAPI_MAX_DRAIN, q->bounce_gfp | GFP_KERNEL);
> + buf = blk_kmalloc(q, ATAPI_MAX_DRAIN, GFP_KERNEL);
I think that's a fair assessment... ACK
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists