From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753148AbbJGLq5 (ORCPT ); Wed, 7 Oct 2015 07:46:57 -0400 Received: from smtp.citrix.com ([66.165.176.89]:34571 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751538AbbJGLq4 (ORCPT ); Wed, 7 Oct 2015 07:46:56 -0400 X-IronPort-AV: E=Sophos;i="5.17,648,1437436800"; d="scan'208";a="304806359" Subject: Re: [PATCH v3 6/9] xen/blkfront: negotiate the number of hw queues/rings with backend To: Bob Liu References: <1441456782-31318-1-git-send-email-bob.liu@oracle.com> <1441456782-31318-7-git-send-email-bob.liu@oracle.com> <56128BC0.1090109@citrix.com> <5614F67C.3060003@oracle.com> CC: , , , , , , , , , , From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Message-ID: <56150605.2090003@citrix.com> Date: Wed, 7 Oct 2015 13:46:13 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5614F67C.3060003@oracle.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-DLP: MIA1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org El 07/10/15 a les 12.39, Bob Liu ha escrit: > On 10/05/2015 10:40 PM, Roger Pau Monné wrote: >> El 05/09/15 a les 14.39, Bob Liu ha escrit: >>> @@ -2267,6 +2335,12 @@ static int __init xlblk_init(void) >>> xen_blkif_max_ring_order = 0; >>> } >>> >>> + if (xen_blkif_max_queues > nr_cpus) { >> >> Shouldn't there be a default value for xen_blkif_max_queues if the user >> hasn't set the parameter on the command line? >> > > Then the default value is 0, multi-queue isn't enabled by default. Why isn't it enabled by default with a sensible number of queues? I guess something like: if (xen_blkif_max_queues == 0) xen_blkif_max_queues = min(nr_cpus, 4); Roger.