From: Itai Nahshon <nahshon@actcom.co.il>
To: Richard Gooch <rgooch@ras.ucalgary.ca>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: Re: SCSI host numbers?
Date: Tue, 15 Jan 2002 14:19:25 +0200 [thread overview]
Message-ID: <200201151219.g0FCJUD15091@lmail.actcom.co.il> (raw)
In-Reply-To: <E16LjdE-0003m4-00@the-village.bc.nu> <200201132041.g0DKfeg30866@lmail.actcom.co.il> <200201140636.g0E6a4b16527@vindaloo.ras.ucalgary.ca>
In-Reply-To: <200201140636.g0E6a4b16527@vindaloo.ras.ucalgary.ca>
On Monday 14 January 2002 08:36 am, Richard Gooch wrote:
> So how about in scsi_host_no_init() we call alloc_unique_number() N
> times until we've allocated the required number of host numbers for
> manual control. These will never be freed. Then all other host
> allocations can be done dynamically. We would just need a flag in the
> host structure to disable deallocation of the number if it's one of
> the reserved numbers.
See that dynamic hosts are also added to the list and *never* removed
from it (even when the host is unregistered). With that behaviour your
unique number functions would be an overkill because we must never
free host nubers.
I suggest these changes:
max_scsi_host initialized in scsi_host_no_init.
max_scsi_host never decremented.
That would fix the problem that I reported.
Than (cosmetic):
rename next_scsi_host to count_scsi_hosts (or num_scsi_hosts)
because it actually just counts the number of registered scsi hosts.
The current name for that variable is confusing...
-- Itai
next prev parent reply other threads:[~2002-01-15 12:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-02 1:19 Itai Nahshon
2002-01-02 11:32 ` Alan Cox
2002-01-02 23:35 ` Itai Nahshon
2002-01-06 1:44 ` Richard Gooch
2002-01-13 20:41 ` Itai Nahshon
2002-01-14 6:36 ` Richard Gooch
2002-01-15 12:19 ` Itai Nahshon [this message]
2002-01-16 7:03 ` Richard Gooch
2002-01-16 9:47 ` Itai Nahshon
2002-03-21 21:48 ` [PATCH] [was SCSI host numbers? ] Itai Nahshon
2002-01-02 19:31 ` SCSI host numbers? Richard Gooch
2002-01-02 21:01 ` Alan Cox
2002-01-02 21:18 ` Richard Gooch
[not found] <mailman.1009934881.4099.linux-kernel2news@redhat.com>
2002-01-02 2:07 ` Pete Zaitcev
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=200201151219.g0FCJUD15091@lmail.actcom.co.il \
--to=nahshon@actcom.co.il \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=rgooch@ras.ucalgary.ca \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®