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@xxxxxxxxxx> > Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> > Cc: Tejun Heo <tj@xxxxxxxxxx> > Cc: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> > Cc: Jens Axboe <axboe@xxxxxxxxx> > Cc: Chas Williams <chas@xxxxxxxxxxxxxxxx> > Cc: Lars Ellenberg <drbd-dev@xxxxxxxxxxxxxxxx> > Cc: Dan Williams <djbw@xxxxxx> > Cc: Vinod Koul <vinod.koul@xxxxxxxxx> > Cc: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx> > Cc: Grant Likely <grant.likely@xxxxxxxxxx> > Cc: Linus Walleij <linus.walleij@xxxxxxxxxx> > Cc: David Airlie <airlied@xxxxxxxx> > Cc: Inki Dae <inki.dae@xxxxxxxxxxx> > Cc: Joonyoung Shim <jy0922.shim@xxxxxxxxxxx> > Cc: Seung-Woo Kim <sw0312.kim@xxxxxxxxxxx> > Cc: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> > Cc: Daniel Vetter <daniel.vetter@xxxxxxxx> > Cc: Wolfram Sang <wsa@xxxxxxxxxxxxx> > Cc: Roland Dreier <roland@xxxxxxxxxx> > Cc: Sean Hefty <sean.hefty@xxxxxxxxx> > Cc: Hal Rosenstock <hal.rosenstock@xxxxxxxxx> > Cc: Steve Wise <swise@xxxxxxxxxxx> > Cc: Hoang-Nam Nguyen <hnguyen@xxxxxxxxxx> > Cc: Christoph Raisch <raisch@xxxxxxxxxx> > Cc: Mike Marciniszyn <infinipath@xxxxxxxxx> > Cc: Alasdair Kergon <agk@xxxxxxxxxx> > Cc: dm-devel@xxxxxxxxxx > Cc: Samuel Ortiz <sameo@xxxxxxxxxxxxxxx> > Cc: Alex Dubov <oakad@xxxxxxxxx> > Cc: Arnd Bergmann <arnd@xxxxxxxx> > Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> > Cc: Chris Ball <cjb@xxxxxxxxxx> > Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx> > Cc: Paul Mackerras <paulus@xxxxxxxxx> > Cc: Anton Vorontsov <cbou@xxxxxxx> > Cc: Rodolfo Giometti <giometti@xxxxxxxxxxxx> > Cc: Ohad Ben-Cohen <ohad@xxxxxxxxxx> > Cc: Anil Gurumurthy <agurumur@xxxxxxxxxxx> > Cc: Vijaya Mohan Guvva <vmohan@xxxxxxxxxxx> > Cc: "James E.J. Bottomley" <JBottomley@xxxxxxxxxxxxx> > Cc: James Smart <james.smart@xxxxxxxxxx> > Cc: Doug Gilbert <dgilbert@xxxxxxxxxxxx> > Cc: Willem Riede <osst@xxxxxxxxx> > Cc: "Kai Mäkisara" <Kai.Makisara@xxxxxxxxxxx> > Cc: Omar Ramirez Luna <omar.ramirez@xxxxxxxxxx> > Cc: "Nicholas A. Bellinger" <nab@xxxxxxxxxxxxxxx> > Cc: Zhang Rui <rui.zhang@xxxxxxxxx> > Cc: Eduardo Valentin <eduardo.valentin@xxxxxx> > Cc: "Hans J. Koch" <hjk@xxxxxxxxxxxx> > Cc: Alex Williamson <alex.williamson@xxxxxxxxxx> > Cc: Christine Caulfield <ccaulfie@xxxxxxxxxx> > Cc: David Teigland <teigland@xxxxxxxxxx> > Cc: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> > Cc: Mark Fasheh <mfasheh@xxxxxxxx> > Cc: Joel Becker <jlbec@xxxxxxxxxxxx> > Cc: Li Zefan <lizefan@xxxxxxxxxx> > Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> > Cc: Ingo Molnar <mingo@xxxxxxxxxx> > Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxxxx> > Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> > Cc: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> > Cc: "John W. Linville" <linville@xxxxxxxxxxxxx> > Cc: Guo Chao <yan@xxxxxxxxxxxxxxxxxx> > Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> > Cc: Dave Airlie <airlied@xxxxxxxxxx> > Cc: Alon Levy <alevy@xxxxxxxxxx> > Cc: "Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx> > Cc: David Howells <dhowells@xxxxxxxxxx> > Cc: Thomas Hellstrom <thellstrom@xxxxxxxxxx> > Cc: Brian Paul <brianp@xxxxxxxxxx> > Cc: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxx> > Cc: Dmitry Torokhov <dtor@xxxxxxxxxx> > Cc: Sasha Levin <sasha.levin@xxxxxxxxxx> > Cc: Erez Shitrit <erezsh@xxxxxxxxxxxxxx> > Cc: Tatyana Nikolova <Tatyana.E.Nikolova@xxxxxxxxx> > Cc: Haggai Eran <haggaie@xxxxxxxxxxxx> > Cc: Guennadi Liakhovetski <g.liakhovetski@xxxxxx> > Cc: Jason Wang <jasowang@xxxxxxxxxx> > Cc: Eric Dumazet <edumazet@xxxxxxxxxx> > Cc: "Michael S. Tsirkin" <mst@xxxxxxxxxx> > Cc: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: Andy Grover <agrover@xxxxxxxxxx> > Cc: Masanari Iida <standby24x7@xxxxxxxxx> > Cc: Tim Gardner <tim.gardner@xxxxxxxxxxxxx> > Cc: Davidlohr Bueso <davidlohr.bueso@xxxxxx> > Cc: Rik van Riel <riel@xxxxxxxxxx> > Cc: Michel Lespinasse <walken@xxxxxxxxxx> For vfio Acked-by: Alex Williamson <alex.williamson@xxxxxxxxxx> > 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) -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel