[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170321135928.GA29659@8bytes.org>
Date:   Tue, 21 Mar 2017 14:59:29 +0100
From:   Joerg Roedel <joro@...tes.org>
To:     Marek Szyprowski <m.szyprowski@...sung.com>
Cc:     iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org,
        Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
        Robin Murphy <robin.murphy@....com>
Subject: Re: [PATCH v2] iommu: iova: Consolidate code for adding new node to
 iovad domain rbtree
On Fri, Feb 24, 2017 at 12:13:37PM +0100, Marek Szyprowski wrote:
> This patch consolidates almost the same code used in iova_insert_rbtree()
> and __alloc_and_insert_iova_range() functions. While touching this code,
> replace BUG() with WARN_ON(1) to avoid taking down the whole system in
> case of corrupted iova tree or incorrect calls.
> 
> Signed-off-by: Marek Szyprowski <m.szyprowski@...sung.com>
> ---
> v2:
> - replaced BUG() with WARN_ON(1) as suggested by Robin Murphy
> 
> v1:
> - initial version
Applied, thanks.
Powered by blists - more mailing lists
 
