From: Lee Duncan <lduncan@suse.com>
To: linux-scsi <linux-scsi@vger.kernel.org>
Cc: Christoph Hellwig <hch@infradead.org>,
hare@suse.com, jthumshirn@suse.de, JBottomley@Parallels.com,
Lee Duncan <lduncan@suse.com>
Subject: [PATCH 0/1] Update scsi hosts to use idr for host number mgmt
Date: Sat, 5 Sep 2015 13:44:52 -0700 [thread overview]
Message-ID: <cover.1441412268.git.lduncan@suse.com> (raw)
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
next reply other threads:[~2015-09-05 20:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-05 20:44 Lee Duncan [this message]
2015-09-05 20:44 ` [PATCH 1/1] Update scsi hosts to use idr for host number mgmt 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1441412268.git.lduncan@suse.com \
--to=lduncan@suse.com \
--cc=JBottomley@Parallels.com \
--cc=hare@suse.com \
--cc=hch@infradead.org \
--cc=jthumshirn@suse.de \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.