Re: [PATCH 1/1] Update scsi hosts to use idr for host number mgmt

2015-09-09 Thread Lee Duncan
On 09/06/2015 08:16 AM, Lee Duncan wrote: > On 09/06/2015 12:34 AM, Sagi Grimberg wrote: >> On 9/5/2015 11:44 PM, Lee Duncan wrote: >>> Each Scsi_host instance gets a host number starting >>> at 0, but this was implemented with an atomic integer, >>> and rollover wasn't considered. Another problem

Re: [PATCH 1/1] Update scsi hosts to use idr for host number mgmt

2015-09-06 Thread Lee Duncan
On 09/06/2015 12:34 AM, Sagi Grimberg wrote: > On 9/5/2015 11:44 PM, Lee Duncan wrote: >> Each Scsi_host instance gets a host number starting >> at 0, but this was implemented with an atomic integer, >> and rollover wasn't considered. Another problem with >> this design is that scsi host numbers us

Re: [PATCH 1/1] Update scsi hosts to use idr for host number mgmt

2015-09-06 Thread Sagi Grimberg
On 9/5/2015 11:44 PM, Lee Duncan wrote: Each Scsi_host instance gets a host number starting at 0, but this was implemented with an atomic integer, and rollover wasn't considered. Another problem with this design is that scsi host numbers used by iscsi are never reused, thereby making rollover mor

[PATCH 1/1] Update scsi hosts to use idr for host number mgmt

2015-09-05 Thread Lee Duncan
Each Scsi_host instance gets a host number starting at 0, but this was implemented with an atomic integer, and rollover wasn't considered. Another problem with this design is that scsi host numbers used by iscsi are never reused, thereby making rollover more likely. This patch converts Scsi_host in