From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757520AbdCUN6r (ORCPT ); Tue, 21 Mar 2017 09:58:47 -0400 Received: from 8bytes.org ([81.169.241.247]:33309 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756343AbdCUN6q (ORCPT ); Tue, 21 Mar 2017 09:58:46 -0400 Date: Tue, 21 Mar 2017 14:59:29 +0100 From: Joerg Roedel To: Marek Szyprowski Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Bartlomiej Zolnierkiewicz , Robin Murphy Subject: Re: [PATCH v2] iommu: iova: Consolidate code for adding new node to iovad domain rbtree Message-ID: <20170321135928.GA29659@8bytes.org> References: <1487934817-11725-1-git-send-email-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1487934817-11725-1-git-send-email-m.szyprowski@samsung.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > v2: > - replaced BUG() with WARN_ON(1) as suggested by Robin Murphy > > v1: > - initial version Applied, thanks.