* [patch,v2 06/10] ata: use scsi_host_alloc_node
[not found] <1351892763-21325-1-git-send-email-jmoyer@redhat.com>
@ 2012-11-02 21:45 ` Jeff Moyer
0 siblings, 0 replies; only message in thread
From: Jeff Moyer @ 2012-11-02 21:45 UTC (permalink / raw)
To: linux-kernel, linux-scsi; +Cc: Bart Van Assche, Jeff Garzik, linux-ide
Signed-off-by: Jeff Moyer <jmoyer@redhat.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-02 21:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1351892763-21325-1-git-send-email-jmoyer@redhat.com>
2012-11-02 21:45 ` [patch,v2 06/10] ata: use scsi_host_alloc_node Jeff Moyer
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).