From patchwork Fri Nov 9 19:18:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Moyer X-Patchwork-Id: 198143 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7A02F2C0131 for ; Sat, 10 Nov 2012 06:21:26 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755454Ab2KITSj (ORCPT ); Fri, 9 Nov 2012 14:18:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55425 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755388Ab2KITSc (ORCPT ); Fri, 9 Nov 2012 14:18:32 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qA9JIS2J028097 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Nov 2012 14:18:28 -0500 Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.16.60.26]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qA9JIR3o015178 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2012 14:18:27 -0500 Received: from segfault.boston.devel.redhat.com (localhost.localdomain [127.0.0.1]) by segfault.boston.devel.redhat.com (8.14.4/8.14.4) with ESMTP id qA9JIQ5U020026; Fri, 9 Nov 2012 14:18:26 -0500 Received: (from jmoyer@localhost) by segfault.boston.devel.redhat.com (8.14.4/8.14.4/Submit) id qA9JIOxh020025; Fri, 9 Nov 2012 14:18:24 -0500 From: Jeff Moyer To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Bart Van Assche , Jeff Garzik , linux-ide@vger.kernel.org Subject: [patch,v3 06/10] ata: use scsi_host_alloc_node Date: Fri, 9 Nov 2012 14:18:03 -0500 Message-Id: <1352488687-19935-7-git-send-email-jmoyer@redhat.com> In-Reply-To: <1352488687-19935-1-git-send-email-jmoyer@redhat.com> References: <1352488687-19935-1-git-send-email-jmoyer@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Signed-off-by: Jeff Moyer Acked-by: Jeff Garzik --- 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;