Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp483615pxv; Thu, 1 Jul 2021 02:38:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6Bk8LvhypbLNJ64X/AObx+Rd1Oljh2WgObezzt6Tc105x3sqy0RtCL4/KZa6rRByu3t1K X-Received: by 2002:a92:c5cb:: with SMTP id s11mr4846542ilt.213.1625132311244; Thu, 01 Jul 2021 02:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625132311; cv=none; d=google.com; s=arc-20160816; b=Ue0kmxPDltZX5FuBKMxM9yHjmBlKzHBsf0W3g6yPXE0kYYIZDrKE9IjUslzzSvGFsj A//gacyKqSjw5ZUkQ0V1A6Kah1K/d8j0T6nUtZrwlORiaiovM0I1UplYi77ZOGsveYkY kJ2T9iBuDtSP7omCF4IX6cv6udKAydm41USVDP1tpkr8uxL94RZn9pf3ACehOLL4O8oq egN1ak/eX7EPuhbnmjWvkQDUHEAMk/HYr1wri+mdGvskVubQcKEGMQ/01JsqEtAInpnH LnIYuVCAf0ZpYwCucY23BtJnv4JJtZ5gKFMWSqH4ZoH3GBdf4VFx8eykeMBaXH+YDk43 ktgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=e1qNZ7fMqW8m8ZQ+nIa5sIXzuVLjHTsZCZh6FtZFKro=; b=OF3uOT30FOaqCZzg5dBtMPUSZNIsja1f9Uo42gUIufVe3wMdPnT7NnPkSFce2l0p7h w75/K6UyiIqlmGY5uTYMWO8zu1jJDUAIPOxXFQLNO6tXzgP0riTtZykuHA2MmyR3qRGW o5RSIQcloK5N2h/P+Z3guQZnV3OmEk+bXJOGZ+FvSeUvZqsA/Vl1bVkGsYZHnFnAk37e VrFAywL3dlCc67zWDVLlwnXEcVQUAOjuBH0b6Q9vIl8CBbqmrQzmvRY8k1+ZitEqjMru GpnY/y6wgEHxq4UsJLLucPqw8zmnKiT9Rb+WS5/PgV7waeL/Qz+aMNMCQ/uYrvCIJmNC OJxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zB6xWZER; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r4si3646383ilt.108.2021.07.01.02.38.18; Thu, 01 Jul 2021 02:38:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zB6xWZER; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235862AbhGAJj0 (ORCPT + 99 others); Thu, 1 Jul 2021 05:39:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:48958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235352AbhGAJjZ (ORCPT ); Thu, 1 Jul 2021 05:39:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1944661449; Thu, 1 Jul 2021 09:36:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1625132215; bh=S1Efz8mAq8RON+Vr5JjVbvbMIB2aRjnUmMwpk1S1/98=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zB6xWZER850I8uyuY+vjlBV9qPI5NMazggLQhpEb6O2p+iMK8eZkN9PQkYMfw5zX7 MubT/KNGN3kR9rjdIAwo0PZuHmkrLt5bUycX1DAKikdf0pxllPFRXLzQ6RJdwdZMww O59+gxWbEUE+aW2M7nYK96PCyqMV/SEL15xN/zrI= Date: Thu, 1 Jul 2021 11:36:53 +0200 From: Greg Kroah-Hartman To: Long Li Cc: "longli@linuxonhyperv.com" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , Jonathan Corbet , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Bjorn Andersson , Hans de Goede , "Williams, Dan J" , Maximilian Luz , Mike Rapoport , Ben Widawsky , Jiri Slaby , Andra Paraschiv , Siddharth Gupta , Hannes Reinecke , "linux-doc@vger.kernel.org" Subject: Re: [Patch v2 2/3] Drivers: hv: add Azure Blob driver Message-ID: References: <1624689020-9589-1-git-send-email-longli@linuxonhyperv.com> <1624689020-9589-3-git-send-email-longli@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 01, 2021 at 06:58:35AM +0000, Long Li wrote: > > Subject: Re: [Patch v2 2/3] Drivers: hv: add Azure Blob driver > > > + > > > +static struct az_blob_device az_blob_dev; > > > + > > > +static int az_blob_ringbuffer_size = (128 * 1024); > > > +module_param(az_blob_ringbuffer_size, int, 0444); > > > +MODULE_PARM_DESC(az_blob_ringbuffer_size, "Ring buffer size > > > +(bytes)"); > > > > This is NOT the 1990's, please do not create new module parameters. > > Just make this work properly for everyone. > > The default value is chosen so that it works best for most workloads while not taking too much system resources. It should work out of box for nearly all customers. Please wrap your email lines :( Anyway, great, it will work for everyone, no need for this to be changed. Then just drop it. > But what we see is that from time to time, some customers still want to change those values to work best for their workloads. It's hard to predict their workload. They have to recompile the kernel if there is no module parameter to do it. So the intent of this module parameter is that if the default value works for you, don't mess up with it. Can you not just determine at runtime that these workloads are overflowing the buffer and increase the size of it? That would be best otherwise you are forced to try to deal with a module parameter that is for code, not for devices (which is why we do not like module parameters for drivers.) Please remove this for now and if you _REALLY_ need it in the future, make it auto-tunable. Or if that is somehow impossible, then make it a per-device option, through something like sysfs so that it will work correctly per-device. thanks, greg k-h