[dm-devel] [PATCH 07/10] idr: Rename idr_alloc() -> idr_alloc_range()

Alex Williamson alex.williamson at redhat.com
Wed Jun 19 16:44:11 UTC 2013


On Tue, 2013-06-18 at 17:02 -0700, Kent Overstreet wrote:
> Then also add an idr_alloc() wrapper, without the start/end arguments -
> for consistency with the ida interfaces.
> 
> Signed-off-by: Kent Overstreet <koverstreet at google.com>
> Cc: Andrew Morton <akpm at linux-foundation.org>
> Cc: Tejun Heo <tj at kernel.org>
> Cc: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
> Cc: Jens Axboe <axboe at kernel.dk>
> Cc: Chas Williams <chas at cmf.nrl.navy.mil>
> Cc: Lars Ellenberg <drbd-dev at lists.linbit.com>
> Cc: Dan Williams <djbw at fb.com>
> Cc: Vinod Koul <vinod.koul at intel.com>
> Cc: Stefan Richter <stefanr at s5r6.in-berlin.de>
> Cc: Grant Likely <grant.likely at linaro.org>
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Cc: David Airlie <airlied at linux.ie>
> Cc: Inki Dae <inki.dae at samsung.com>
> Cc: Joonyoung Shim <jy0922.shim at samsung.com>
> Cc: Seung-Woo Kim <sw0312.kim at samsung.com>
> Cc: Kyungmin Park <kyungmin.park at samsung.com>
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
> Cc: Wolfram Sang <wsa at the-dreams.de>
> Cc: Roland Dreier <roland at kernel.org>
> Cc: Sean Hefty <sean.hefty at intel.com>
> Cc: Hal Rosenstock <hal.rosenstock at gmail.com>
> Cc: Steve Wise <swise at chelsio.com>
> Cc: Hoang-Nam Nguyen <hnguyen at de.ibm.com>
> Cc: Christoph Raisch <raisch at de.ibm.com>
> Cc: Mike Marciniszyn <infinipath at intel.com>
> Cc: Alasdair Kergon <agk at redhat.com>
> Cc: dm-devel at redhat.com
> Cc: Samuel Ortiz <sameo at linux.intel.com>
> Cc: Alex Dubov <oakad at yahoo.com>
> Cc: Arnd Bergmann <arnd at arndb.de>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Cc: Chris Ball <cjb at laptop.org>
> Cc: David Woodhouse <dwmw2 at infradead.org>
> Cc: Paul Mackerras <paulus at samba.org>
> Cc: Anton Vorontsov <cbou at mail.ru>
> Cc: Rodolfo Giometti <giometti at enneenne.com>
> Cc: Ohad Ben-Cohen <ohad at wizery.com>
> Cc: Anil Gurumurthy <agurumur at brocade.com>
> Cc: Vijaya Mohan Guvva <vmohan at brocade.com>
> Cc: "James E.J. Bottomley" <JBottomley at parallels.com>
> Cc: James Smart <james.smart at emulex.com>
> Cc: Doug Gilbert <dgilbert at interlog.com>
> Cc: Willem Riede <osst at riede.org>
> Cc: "Kai Mäkisara" <Kai.Makisara at kolumbus.fi>
> Cc: Omar Ramirez Luna <omar.ramirez at copitl.com>
> Cc: "Nicholas A. Bellinger" <nab at linux-iscsi.org>
> Cc: Zhang Rui <rui.zhang at intel.com>
> Cc: Eduardo Valentin <eduardo.valentin at ti.com>
> Cc: "Hans J. Koch" <hjk at hansjkoch.de>
> Cc: Alex Williamson <alex.williamson at redhat.com>
> Cc: Christine Caulfield <ccaulfie at redhat.com>
> Cc: David Teigland <teigland at redhat.com>
> Cc: Trond Myklebust <Trond.Myklebust at netapp.com>
> Cc: Mark Fasheh <mfasheh at suse.com>
> Cc: Joel Becker <jlbec at evilplan.org>
> Cc: Li Zefan <lizefan at huawei.com>
> Cc: Peter Zijlstra <a.p.zijlstra at chello.nl>
> Cc: Ingo Molnar <mingo at redhat.com>
> Cc: Arnaldo Carvalho de Melo <acme at ghostprotocols.net>
> Cc: "David S. Miller" <davem at davemloft.net>
> Cc: Johannes Berg <johannes at sipsolutions.net>
> Cc: "John W. Linville" <linville at tuxdriver.com>
> Cc: Guo Chao <yan at linux.vnet.ibm.com>
> Cc: Al Viro <viro at zeniv.linux.org.uk>
> Cc: Dave Airlie <airlied at redhat.com>
> Cc: Alon Levy <alevy at redhat.com>
> Cc: "Paul E. McKenney" <paulmck at linux.vnet.ibm.com>
> Cc: David Howells <dhowells at redhat.com>
> Cc: Thomas Hellstrom <thellstrom at vmware.com>
> Cc: Brian Paul <brianp at vmware.com>
> Cc: Maarten Lankhorst <maarten.lankhorst at canonical.com>
> Cc: Dmitry Torokhov <dtor at vmware.com>
> Cc: Sasha Levin <sasha.levin at oracle.com>
> Cc: Erez Shitrit <erezsh at mellanox.co.il>
> Cc: Tatyana Nikolova <Tatyana.E.Nikolova at intel.com>
> Cc: Haggai Eran <haggaie at mellanox.com>
> Cc: Guennadi Liakhovetski <g.liakhovetski at gmx.de>
> Cc: Jason Wang <jasowang at redhat.com>
> Cc: Eric Dumazet <edumazet at google.com>
> Cc: "Michael S. Tsirkin" <mst at redhat.com>
> Cc: Dan Magenheimer <dan.magenheimer at oracle.com>
> Cc: Christoph Hellwig <hch at lst.de>
> Cc: Andy Grover <agrover at redhat.com>
> Cc: Masanari Iida <standby24x7 at gmail.com>
> Cc: Tim Gardner <tim.gardner at canonical.com>
> Cc: Davidlohr Bueso <davidlohr.bueso at hp.com>
> Cc: Rik van Riel <riel at redhat.com>
> Cc: Michel Lespinasse <walken at google.com>

For vfio

Acked-by: Alex Williamson <alex.williamson at redhat.com>

> diff --git a/drivers/vfio/vfio.c b/drivers/vfio/vfio.c
> index 6d78736..ce667cb 100644
> --- a/drivers/vfio/vfio.c
> +++ b/drivers/vfio/vfio.c
> @@ -142,7 +142,7 @@ EXPORT_SYMBOL_GPL(vfio_unregister_iommu_driver);
>  static int vfio_alloc_group_minor(struct vfio_group *group)
>  {
>  	/* index 0 is used by /dev/vfio/vfio */
> -	return idr_alloc(&vfio.group_idr, group, 1, MINORMASK + 1, GFP_KERNEL);
> +	return idr_alloc_range(&vfio.group_idr, group, 1, MINORMASK + 1, GFP_KERNEL);
>  }
>  
>  static void vfio_free_group_minor(int minor)





More information about the dm-devel mailing list