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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is an updated version of a patch I submitted a few days ago.

The previous versions of this patch updated the scsi hosts module
to use the ida helper routines to allocate host numbers, instead
of using a simple integer.

Based on a suggestion by Christoph Hellwig, I decided to use the
idr helper routines instead of the ida set, since the idr functions
can also associate a pointer with an index.

This patch uses idr to manage the host number index as well
as to simplify looking up a host based on that index.

No helper routines were supplied/needed since the users
of these APIs do not seem to have uniform calling sequences.

A separate patch sequence follows which will add helper routines
for the ida index functions.

Lee Duncan (1):
  Update scsi hosts to use idr for host number mgmt

 drivers/scsi/hosts.c | 59 +++++++++++++++++++++++++---------------------------
 1 file changed, 28 insertions(+), 31 deletions(-)

-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux