Skip to content

Update SCSI hosts to use ida for host number mgmt

Lee Duncan linux-hotplug linux-scsi lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 23 repliesIn review
  2. v31 patch 3 repliesSuperseded
  3. v21 patch 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch5 repliesSuperseded

Changes in v4 from the cover letter

- Switched from idr to ida since managing our instance pointer required extra locking

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1SCSI: hosts: update to use ida_simple for host_no managementdrivers/scsi/hosts.c+14 -823 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchJohannes Thumshirn
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCHv4 0/1] Update SCSI hosts to use ida for host number mgmt

This patch updates the SCSI hosts module to use the ida index-management routines to manage its host_no index instead of using an ATOMIC integer. This means that host numbers can now be reclaimed and re-used.

NOTE: it was not feasible to use idr_*() functions instead of ida_*() functions, since using idr_find() without additional locking to find our Scsi_Host structure left a window between idr lookup and host structure deletion that would have required additional locking to close.

Changes from v3:
- Switched from idr to ida since managing our instance pointer required extra locking
Changes from v2 and v1:
- First two version used idr instead of ida

Lee Duncan (1):
SCSI: hosts: update to use ida_simple for host_no management

 drivers/scsi/hosts.c | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)
Signature · 1 line
2.1.4