linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Update scsi hosts to use idr for host number mgmt
@ 2015-09-05 20:44 Lee Duncan
  2015-09-05 20:44 ` [PATCH 1/1] " Lee Duncan
  2015-09-06  7:32 ` [PATCH 0/1] " Sagi Grimberg
  0 siblings, 2 replies; 7+ messages in thread
From: Lee Duncan @ 2015-09-05 20:44 UTC (permalink / raw)
  To: linux-scsi; +Cc: Christoph Hellwig, hare, jthumshirn, JBottomley, Lee Duncan

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-09-10  1:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-05 20:44 [PATCH 0/1] Update scsi hosts to use idr for host number mgmt Lee Duncan
2015-09-05 20:44 ` [PATCH 1/1] " Lee Duncan
2015-09-06  7:34   ` Sagi Grimberg
2015-09-06 15:16     ` Lee Duncan
2015-09-10  1:31       ` Lee Duncan
2015-09-06  7:32 ` [PATCH 0/1] " Sagi Grimberg
2015-09-06 15:12   ` Lee Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).