[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <x49pq4axre1.fsf@segfault.boston.devel.redhat.com>
Date: Mon, 22 Oct 2012 15:01:42 -0400
From: Jeff Moyer <jmoyer@...hat.com>
To: axboe@...nel.dk, linux-kernel@...r.kernel.org,
SCSI Mailing List <linux-scsi@...r.kernel.org>
Subject: [patch/rfc/rft] sd: allocate request_queue on device's local numa node
Hi,
All of the infrastructure is available to allocate a request_queue on a
particular numa node, but it isn't being utilized at all. Wire up the
sd driver to allocate the request_queue on the HBA's local numa node.
This is a request for comments and testing (I've built and booted it,
nothing more). I believe that this should be a performance win, but I
have no numbers to back it up as yet. Suggestions for workloads to test
are welcome.
Cheers,
Jeff
Signed-off-by: Jeff Moyer <jmoyer@...hat.com>
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index da36a3a..7986483 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -1664,7 +1664,8 @@ struct request_queue *__scsi_alloc_queue(struct Scsi_Host *shost,
struct request_queue *q;
struct device *dev = shost->dma_dev;
- q = blk_init_queue(request_fn, NULL);
+ q = blk_init_queue_node(request_fn, NULL,
+ dev_to_node(&shost->shost_dev));
if (!q)
return NULL;
--
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