All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Santosh Jodh <Santosh.Jodh@citrix.com>,
	"konrad.wilk\@oracle.com" <konrad.wilk@oracle.com>,
	"jeremy\@goop.org" <jeremy@goop.org>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	"jbarnes\@virtuousgeek.org" <jbarnes@virtuousgeek.org>,
	"jbeulich\@novell.com" <jbeulich@novell.com>,
	"joe.jin\@oracle.com" <joe.jin@oracle.com>,
	"lersek\@redhat.com" <lersek@redhat.com>,
	"weiyi.huang\@gmail.com" <weiyi.huang@gmail.com>,
	"dgdegra\@tycho.nsa.gov" <dgdegra@tycho.nsa.gov>,
	David Vrabel <david.vrabel@citrix.com>,
	"paul.gortmaker\@windriver.com" <paul.gortmaker@windriver.com>,
	"akpm\@linux-foundation.org" <akpm@linux-foundation.org>,
	"waldi\@debian.org" <waldi@debian.org>,
	"virtualization\@lists.linux-foundation.org"
	<virtualization@lists.linux-foundation.org>,
	"netdev\@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-pci\@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"xen-devel\@lists.xen.org" <xen-devel@lists.xen.org>
Cc: Santosh Jodh <Santosh.Jodh@citrix.com>,
	Paul Durrant <Paul.Durrant@citrix.com>
Subject: Re: [PATCH 0001/001] xen: multi page ring support for block devices
Date: Tue, 06 Mar 2012 13:12:49 +1030	[thread overview]
Message-ID: <87ty22xxee.fsf@rustcorp.com.au> (raw)
In-Reply-To: <7914B38A4445B34AA16EB9F1352942F1010A1FA12364@SJCPMAILBOX01.citrite.net>

On Mon, 5 Mar 2012 13:49:07 -0800, Santosh Jodh <Santosh.Jodh@citrix.com> wrote:
> +/* Order of maximum shared ring size advertised to the front end. */
> +int xen_blkif_max_ring_order = XENBUS_MAX_RING_ORDER;
> +
> +#define BLK_RING_SIZE(_order) __CONST_RING_SIZE(blkif, PAGE_SIZE << (_order))
> +
> +static int set_max_ring_order(const char *buf, struct kernel_param *kp)
> +{
> +       int err;
> +       unsigned long order;
> +
> +       err = kstrtol(buf, 0, &order);
> +       if (err ||
> +           order < 0 ||
> +           order > XENBUS_MAX_RING_ORDER)
> +               return -EINVAL;

Hmm, order can't be < 0, since it's unsigned.  So did you mean
kstrtoull?

And I think returning err is cleaner (it's -EINVAL for malformed
strings, -ERANGE for ones too big).

> +       if (xen_blkif_reqs < BLK_RING_SIZE(order))
> +               printk(KERN_WARNING "WARNING: "
> +                      "I/O request space (%d reqs) < ring order %ld, "
> +                      "consider increasing %s.reqs to >= %ld.",
> +                      xen_blkif_reqs, order, KBUILD_MODNAME,
> +                      roundup_pow_of_two(BLK_RING_SIZE(order)));

This message doesn't mention the module namr or parameter name
anywhere.  Think of the poor sysadmins!

Thanks,
Rusty.
-- 
  How could I marry someone with more hair than me?  http://baldalex.org

WARNING: multiple messages have this Message-ID (diff)
From: Rusty Russell <rusty@rustcorp.com.au>
To: Santosh Jodh <Santosh.Jodh@citrix.com>,
	"konrad.wilk\@oracle.com" <konrad.wilk@oracle.com>,
	"jeremy\@goop.org" <jeremy@goop.org>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	"jbarnes\@virtuousgeek.org" <jbarnes@virtuousgeek.org>,
	"jbeulich\@novell.com" <jbeulich@novell.com>,
	"joe.jin\@oracle.com" <joe.jin@oracle.com>,
	"lersek\@redhat.com" <lersek@redhat.com>,
	"weiyi.huang\@gmail.com" <weiyi.huang@gmail.com>,
	"dgdegra\@tycho.nsa.gov" <dgdegra@tycho.nsa.gov>,
	David Vrabel <david.vrabel@citrix.com>,
	"paul.gortmaker\@windriver.com" <paul.gortmaker@windriver.com>,
	"akpm\@linux-foundation.org" <akpm@linux-foundation.org>,
	"waldi\@debian.org" <waldi@debian.org>,
	"virtualization\@lists.linux-foundation.org"
	<virtualization@lists.linux-foundation.org>,
	"netdev\@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-pci\@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"linux-kernel\@vg
Cc: Santosh Jodh <Santosh.Jodh@citrix.com>,
	Paul Durrant <Paul.Durrant@citrix.com>
Subject: Re: [PATCH 0001/001] xen: multi page ring support for block devices
Date: Tue, 06 Mar 2012 13:12:49 +1030	[thread overview]
Message-ID: <87ty22xxee.fsf@rustcorp.com.au> (raw)
In-Reply-To: <7914B38A4445B34AA16EB9F1352942F1010A1FA12364@SJCPMAILBOX01.citrite.net>

On Mon, 5 Mar 2012 13:49:07 -0800, Santosh Jodh <Santosh.Jodh@citrix.com> wrote:
> +/* Order of maximum shared ring size advertised to the front end. */
> +int xen_blkif_max_ring_order = XENBUS_MAX_RING_ORDER;
> +
> +#define BLK_RING_SIZE(_order) __CONST_RING_SIZE(blkif, PAGE_SIZE << (_order))
> +
> +static int set_max_ring_order(const char *buf, struct kernel_param *kp)
> +{
> +       int err;
> +       unsigned long order;
> +
> +       err = kstrtol(buf, 0, &order);
> +       if (err ||
> +           order < 0 ||
> +           order > XENBUS_MAX_RING_ORDER)
> +               return -EINVAL;

Hmm, order can't be < 0, since it's unsigned.  So did you mean
kstrtoull?

And I think returning err is cleaner (it's -EINVAL for malformed
strings, -ERANGE for ones too big).

> +       if (xen_blkif_reqs < BLK_RING_SIZE(order))
> +               printk(KERN_WARNING "WARNING: "
> +                      "I/O request space (%d reqs) < ring order %ld, "
> +                      "consider increasing %s.reqs to >= %ld.",
> +                      xen_blkif_reqs, order, KBUILD_MODNAME,
> +                      roundup_pow_of_two(BLK_RING_SIZE(order)));

This message doesn't mention the module namr or parameter name
anywhere.  Think of the poor sysadmins!

Thanks,
Rusty.
-- 
  How could I marry someone with more hair than me?  http://baldalex.org

  reply	other threads:[~2012-03-06  3:27 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-03 15:47 [PATCH 3/3] netxen: qlogic ethernet : Fix Endian Bug santosh nayak
2012-03-03 15:59 ` santosh nayak
2012-03-05 11:43 ` Rajesh Borundia
2012-03-05 11:43   ` Rajesh Borundia
2012-03-05 20:35   ` David Miller
2012-03-05 20:35     ` David Miller
2012-03-07 19:41     ` Rajesh Borundia
2012-03-07 19:41       ` Rajesh Borundia
2012-03-09 15:13       ` santosh prasad nayak
2012-03-09 16:34 ` Rajesh Borundia
2012-03-09 16:34   ` Rajesh Borundia
2012-03-09 18:50   ` santosh prasad nayak
2012-03-09 18:51     ` santosh prasad nayak
2012-03-10 19:01     ` Rajesh Borundia
2012-03-10 19:01       ` Rajesh Borundia
2012-03-11  9:16       ` santosh prasad nayak
2012-03-11  9:28         ` santosh prasad nayak
2012-03-02 15:11         ` santosh nayak
2012-03-02 15:23           ` santosh nayak
2012-03-02 17:22           ` Rajesh Borundia
2012-03-02 17:22             ` Rajesh Borundia
2012-03-05 21:49           ` [PATCH 0001/001] xen: multi page ring support for block devices Santosh Jodh
2012-03-05 21:49             ` Santosh Jodh
2012-03-06  2:42             ` Rusty Russell [this message]
2012-03-06  2:42               ` Rusty Russell
2012-03-06  6:21               ` Santosh Jodh
2012-03-06  6:21               ` Santosh Jodh
2012-03-06  6:21                 ` Santosh Jodh
2012-03-06  6:21               ` Santosh Jodh
2012-03-06  2:42             ` Rusty Russell
2012-03-06  2:42             ` Rusty Russell
2012-03-06  8:34             ` Jan Beulich
2012-03-06  8:34             ` Jan Beulich
2012-03-06  8:34               ` Jan Beulich
2012-03-14 17:17               ` Justin T. Gibbs
2012-03-14 17:17               ` [Xen-devel] " Justin T. Gibbs
2012-03-15  8:09                 ` Jan Beulich
2012-03-06  8:34             ` Jan Beulich
2012-03-06 11:16             ` Wei Liu
2012-03-06 11:16               ` Wei Liu
2012-03-06 11:16             ` [Xen-devel] " Wei Liu
2012-03-06 17:20             ` Konrad Rzeszutek Wilk
2012-03-07  9:33               ` Jan Beulich
2012-03-07  9:33               ` [Xen-devel] " Jan Beulich
2012-03-07  9:33                 ` Jan Beulich
2012-03-07  9:33                 ` Jan Beulich
2012-03-07 15:15                 ` Konrad Rzeszutek Wilk
2012-03-07 15:15                 ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-03-07 15:15                   ` Konrad Rzeszutek Wilk
2012-03-14  6:32                 ` Justin Gibbs
2012-03-14  6:32                 ` [Xen-devel] " Justin Gibbs
2012-03-14  6:32                   ` Justin Gibbs
2012-03-14  8:35                   ` Jan Beulich
2012-03-14  8:35                   ` [Xen-devel] " Jan Beulich
2012-03-14 15:34                   ` Jan Beulich
2012-03-14 17:01                     ` Justin Gibbs
2012-03-15  8:03                       ` Jan Beulich
2012-03-15  8:03                       ` [Xen-devel] " Jan Beulich
2012-03-15  8:51                         ` Ian Campbell
2012-03-15  9:31                           ` Jan Beulich
2012-03-15  9:31                           ` [Xen-devel] " Jan Beulich
2012-03-15  8:51                         ` Ian Campbell
2012-03-14 17:01                     ` Justin Gibbs
2012-03-14 15:34                   ` Jan Beulich
2012-03-06 17:20             ` Konrad Rzeszutek Wilk
2012-03-05 21:49           ` Santosh Jodh
2012-03-05 21:49           ` Santosh Jodh
2012-03-12  9:37           ` [PATCH 3/3] netxen: qlogic ethernet : Fix Endian Bug David Laight
2012-03-12  9:37             ` David Laight
2012-03-12  9:47             ` santosh prasad nayak
2012-03-12  9:59               ` santosh prasad nayak
2012-03-12  6:19         ` Rajesh Borundia
2012-03-12  6:19           ` Rajesh Borundia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ty22xxee.fsf@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=Ian.Campbell@citrix.com \
    --cc=Paul.Durrant@citrix.com \
    --cc=Santosh.Jodh@citrix.com \
    --cc=akpm@linux-foundation.org \
    --cc=david.vrabel@citrix.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=jbarnes@virtuousgeek.org \
    --cc=jbeulich@novell.com \
    --cc=jeremy@goop.org \
    --cc=joe.jin@oracle.com \
    --cc=konrad.wilk@oracle.com \
    --cc=lersek@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=paul.gortmaker@windriver.com \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=waldi@debian.org \
    --cc=weiyi.huang@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.