[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1354034799-8460-7-git-send-email-jmoyer@redhat.com>
Date: Tue, 27 Nov 2012 11:46:34 -0500
From: Jeff Moyer <jmoyer@...hat.com>
To: linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org,
JBottomley@...allels.com
Cc: Bart Van Assche <bvanassche@....org>,
Jeff Garzik <jgarzik@...ox.com>, linux-ide@...r.kernel.org
Subject: [patch,v3,repost 06/10] ata: use scsi_host_alloc_node
Acked-by: Jeff Garzik <jgarzik@...hat.com>
Signed-off-by: Jeff Moyer <jmoyer@...hat.com>
---
drivers/ata/libata-scsi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index e3bda07..9d5dd09 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -3586,7 +3586,8 @@ int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht)
struct Scsi_Host *shost;
rc = -ENOMEM;
- shost = scsi_host_alloc(sht, sizeof(struct ata_port *));
+ shost = scsi_host_alloc_node(sht, sizeof(struct ata_port *),
+ dev_to_node(host->dev));
if (!shost)
goto err_alloc;
--
1.7.1
--
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