From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752317AbbJFNAV (ORCPT ); Tue, 6 Oct 2015 09:00:21 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:40881 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750810AbbJFNAT (ORCPT ); Tue, 6 Oct 2015 09:00:19 -0400 Subject: Re: [PATCHv2 1/1] SCSI: update hosts module to use idr index management To: Lee Duncan , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <1a69690d615610c1dee725db7e6d81cf2db28266.1444085255.git.lduncan@suse.com> Cc: James Bottomley , Tejun Heo , Johannes Thumshirn , Christoph Hellwig From: Hannes Reinecke Message-ID: <5613C5D9.4080406@suse.com> Date: Tue, 6 Oct 2015 15:00:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1a69690d615610c1dee725db7e6d81cf2db28266.1444085255.git.lduncan@suse.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/06/2015 01:01 AM, Lee Duncan wrote: > Update the SCSI hosts module to use idr to manage > its host_no index instead of an ATOMIC integer. This > also allows using idr_find() to look up the SCSI > host structure given the host number. > > This means that the SCSI host number will now > be reclaimable. > > Signed-off-by: Lee Duncan > --- > drivers/scsi/hosts.c | 60 +++++++++++++++++++++++++--------------------------- > 1 file changed, 29 insertions(+), 31 deletions(-) > Very nice. Reviewed-by: Hannes Reinecke Cheers, Hannes