[PATCH 11/17] lib/interval_tree: fast overlap detection

Doug Ledford dledford at redhat.com
Sat Jul 22 17:52:28 UTC 2017


On 7/18/2017 9:45 PM, Davidlohr Bueso wrote:
> Allow interval trees to quickly check for overlaps to avoid
> unnecesary tree lookups in interval_tree_iter_first().
> 
> As of this patch, all interval tree flavors will require
> using a 'rb_root_cached' such that we can have the leftmost
> node easily available. While most users will make use of this
> feature, those with special functions (in addition to the generic
> insert, delete, search calls) will avoid using the cached
> option as they can do funky things with insertions -- for example,
> vma_interval_tree_insert_after().
> 
> Cc: David Airlie <airlied at linux.ie>
> Cc: dri-devel at lists.freedesktop.org
> Cc: "Michael S. Tsirkin" <mst at redhat.com>
> Cc: Jason Wang <jasowang at redhat.com>
> Cc: Doug Ledford <dledford at redhat.com>
> Cc: Christian Benvenuti <benve at cisco.com>
> Cc: linux-rdma at vger.kernel.org
> Acked-by: Christian König <christian.koenig at amd.com>
> Acked-by: Peter Zijlstra (Intel) <peterz at infradead.org>
> Signed-off-by: Davidlohr Bueso <dbueso at suse.de>

Ack for the RDMA parts.

Acked-by: Doug Ledford <dledford at redhat.com>


-- 
Doug Ledford <dledford at redhat.com>
    GPG Key ID: B826A3330E572FDD
    Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170722/094f65ff/attachment.sig>


More information about the dri-devel mailing list