Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756950Ab3JKIuH (ORCPT ); Fri, 11 Oct 2013 04:50:07 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:44175 "EHLO mail-bk0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756789Ab3JKIuE (ORCPT ); Fri, 11 Oct 2013 04:50:04 -0400 From: Matias Bjorling To: willy@linux.intel.com Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Matias Bjorling Subject: [PATCH 2/2] NVMe: Extract admin queue size Date: Fri, 11 Oct 2013 10:48:53 +0200 Message-Id: <1381481333-23888-3-git-send-email-m@bjorling.me> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1381481333-23888-1-git-send-email-m@bjorling.me> References: <1381481333-23888-1-git-send-email-m@bjorling.me> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1220 Lines: 37 The queue size of the admin queue should be defined as a constant for use in multiple places. Signed-off-by: Matias Bjorling --- drivers/block/nvme-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index 1e940e8..d4f01d4 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c @@ -44,6 +44,7 @@ #include #define NVME_Q_DEPTH 1024 +#define NVME_ADMIN_Q_DEPTH 64 #define SQ_SIZE(depth) (depth * sizeof(struct nvme_command)) #define CQ_SIZE(depth) (depth * sizeof(struct nvme_completion)) #define NVME_MINORS 64 @@ -1261,7 +1262,7 @@ static int nvme_configure_admin_queue(struct nvme_dev *dev) nvmeq = dev->queues[0]; if (!nvmeq) { - nvmeq = nvme_alloc_queue(dev, 0, 64, 0); + nvmeq = nvme_alloc_queue(dev, 0, NVME_ADMIN_Q_DEPTH, 0); if (!nvmeq) return -ENOMEM; dev->queues[0] = nvmeq; -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/