From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH] iommu: simplify and fix ida handling Date: Mon, 4 Jul 2016 13:46:48 +0200 Message-ID: <20160704114648.GE11467@suse.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Heiner Kallweit Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Wed, Jun 29, 2016 at 09:13:59PM +0200, Heiner Kallweit wrote: > Ida handling can be much simplified by using the ida_simple_.. functions. > > This change also fixes the bug that previously checking for errors > returned by ida_get_new() was incomplete. > ida_get_new() can return errors other than EAGAIN, e.g. ENOSPC. > This case wasn't handled. > > Signed-off-by: Heiner Kallweit > --- > drivers/iommu/iommu.c | 24 ++++++------------------ > 1 file changed, 6 insertions(+), 18 deletions(-) The patch does not apply. Please rebase it against the latest upstream kernel and resend.