All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen-blkfront: rename indirect descriptor parameter
@ 2016-02-10 11:21 Jan Beulich
  2016-02-10 12:22 ` Roger Pau Monné
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Beulich @ 2016-02-10 11:21 UTC (permalink / raw)
  To: Roger Pau Monne, Konrad Rzeszutek Wilk; +Cc: xen-devel

"max" is rather ambiguous and carries pretty little meaning, the more
that there are also "max_queues" and "max_ring_page_order". Make this
"max_indirect_segments" instead, and at once change the type from int
to uint (to match the respective variable's type).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
 drivers/block/xen-blkfront.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- 4.5-rc3/drivers/block/xen-blkfront.c
+++ 4.5-rc3-xen-blkfront-max-param/drivers/block/xen-blkfront.c
@@ -125,8 +125,10 @@ static const struct block_device_operati
  */
 
 static unsigned int xen_blkif_max_segments = 32;
-module_param_named(max, xen_blkif_max_segments, int, S_IRUGO);
-MODULE_PARM_DESC(max, "Maximum amount of segments in indirect requests (default is 32)");
+module_param_named(max_indirect_segments, xen_blkif_max_segments, uint,
+		   S_IRUGO);
+MODULE_PARM_DESC(max_indirect_segments,
+		 "Maximum amount of segments in indirect requests (default is 32)");
 
 static unsigned int xen_blkif_max_queues = 4;
 module_param_named(max_queues, xen_blkif_max_queues, uint, S_IRUGO);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] xen-blkfront: rename indirect descriptor parameter
  2016-02-10 11:21 [PATCH] xen-blkfront: rename indirect descriptor parameter Jan Beulich
@ 2016-02-10 12:22 ` Roger Pau Monné
  2016-02-15 17:38   ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 3+ messages in thread
From: Roger Pau Monné @ 2016-02-10 12:22 UTC (permalink / raw)
  To: Jan Beulich, Konrad Rzeszutek Wilk; +Cc: xen-devel

El 10/2/16 a les 12:21, Jan Beulich ha escrit:
> "max" is rather ambiguous and carries pretty little meaning, the more
> that there are also "max_queues" and "max_ring_page_order". Make this
> "max_indirect_segments" instead, and at once change the type from int
> to uint (to match the respective variable's type).
> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Acked-by: Roger Pau Monné <roger.pau@citrix.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] xen-blkfront: rename indirect descriptor parameter
  2016-02-10 12:22 ` Roger Pau Monné
@ 2016-02-15 17:38   ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 3+ messages in thread
From: Konrad Rzeszutek Wilk @ 2016-02-15 17:38 UTC (permalink / raw)
  To: Roger Pau Monné; +Cc: xen-devel, Jan Beulich

On Wed, Feb 10, 2016 at 01:22:40PM +0100, Roger Pau Monné wrote:
> El 10/2/16 a les 12:21, Jan Beulich ha escrit:
> > "max" is rather ambiguous and carries pretty little meaning, the more
> > that there are also "max_queues" and "max_ring_page_order". Make this
> > "max_indirect_segments" instead, and at once change the type from int
> > to uint (to match the respective variable's type).
> > 
> > Signed-off-by: Jan Beulich <jbeulich@suse.com>
> 
> Acked-by: Roger Pau Monné <roger.pau@citrix.com>
> 

applied.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-15 17:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-10 11:21 [PATCH] xen-blkfront: rename indirect descriptor parameter Jan Beulich
2016-02-10 12:22 ` Roger Pau Monné
2016-02-15 17:38   ` Konrad Rzeszutek Wilk

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.