diff options
author | Lee Duncan <lduncan@suse.com> | 2016-01-20 22:48:00 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-02-24 05:27:02 +0300 |
commit | 126a4fe010fd86cf3eaac9a481f0698e39dc3c0d (patch) | |
tree | 1e14f372d7e8eac390dabcad683fea6fb0f19c6f /drivers/scsi/bnx2fc | |
parent | d92ca9d3de862cb123d7ef0fd42dc1e9867dd590 (diff) | |
download | linux-126a4fe010fd86cf3eaac9a481f0698e39dc3c0d.tar.xz |
scsi: Use ida for host number management
Update the SCSI hosts module to use ida to manage its host_no index
instead of an atomic integer. This means that the SCSI host number will
now be reclaimable.
Use the ida "simple" mechanism, since there should be no need for a
separate spin lock current usage. Ida was chosen over idr because the
hosts module already has its own instance and locking mechanisms that
aren't easily changed.
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/bnx2fc')
0 files changed, 0 insertions, 0 deletions