Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1605618

Re: [PATCH v2] iommu: iova: Consolidate code for adding new node to iovad domain rbtree

From Joerg Roedel <joro@8bytes.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2] iommu: iova: Consolidate code for adding new node to iovad domain rbtree
Date 2017-03-21 15:00 +0100
Message-ID <tnsul-43V-9@gated-at.bofh.it> (permalink)
References <tem4N-7KI-17@gated-at.bofh.it> <tem4N-7KI-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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@samsung.com>
> ---
> v2:
> - replaced BUG() with WARN_ON(1) as suggested by Robin Murphy
> 
> v1:
> - initial version

Applied, thanks.

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH v2] iommu: iova: Consolidate code for adding new node to  iovad domain rbtree Joerg Roedel <joro@8bytes.org> - 2017-03-21 15:00 +0100

csiph-web