diff options
author | Lee Duncan <lduncan@suse.com> | 2016-01-20 20:48:00 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-02-24 03:27:02 +0100 |
commit | 126a4fe010fd86cf3eaac9a481f0698e39dc3c0d (patch) | |
tree | 1e14f372d7e8eac390dabcad683fea6fb0f19c6f /kernel/auditsc.c | |
parent | megaraid_sas: driver version upgrade (diff) | |
download | linux-126a4fe010fd86cf3eaac9a481f0698e39dc3c0d.tar.xz linux-126a4fe010fd86cf3eaac9a481f0698e39dc3c0d.zip |
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 'kernel/auditsc.c')
0 files changed, 0 insertions, 0 deletions