From: Matthew Wilcox <matthew@wil.cx>
To: James.Smart@Emulex.Com
Cc: matthew@wil.cx, dgilbert@interlog.com, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] scsi_mid_low_api doesn't mention scsi_scan_host
Date: Mon, 21 Mar 2005 15:59:22 +0000 [thread overview]
Message-ID: <20050321155922.GU21986@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <9BB4DECD4CFE6D43AA8EA8D768ED51C201AB43@xbl3.ad.emulex.com>
On Mon, Mar 21, 2005 at 09:50:07AM -0500, James.Smart@Emulex.Com wrote:
> > + * successful call to scsi_host_alloc(). The LLD must call
> > + * scsi_scan_host() in order to scan the bus. The LLD must set up
> > + * the transport template before calling this function and may only
> > + * access the transport class data after this function has
> > been called.
>
> It is not mandatory that the LLD call scsi_scan_host(). Although this used
> to be the case, a few changes have been made in the midlayer recently as we
> attempted to have the transports perform scanning on behalf of the LLD's.
> The scsi_scan_target() function can now be used instead of scsi_scan_host().
> (note: the symbol scsi_scan_single_target() was added briefly, then removed
> as scsi_scan_target was exported). In the case of the LLD's using the FC
> transport, the need not call any scan function. The FC transport calls
> scsi_scan_target() for them.
Thanks for the correction. How does this look?
* Notes: Only required in "hotplug initialization model" after a
* successful call to scsi_host_alloc(). This function does not
* scan the bus; this can be done by calling scsi_scan_host() or
* in some other transport-specific way. The LLD must set up
* the transport template before calling this function and may only
* access the transport class data after this function has been called.
--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
next prev parent reply other threads:[~2005-03-21 15:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-21 14:50 [PATCH] scsi_mid_low_api doesn't mention scsi_scan_host James.Smart
2005-03-21 15:59 ` Matthew Wilcox [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-21 22:52 James.Smart
2005-03-24 8:45 ` Douglas Gilbert
2005-03-21 13:43 Matthew Wilcox
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=20050321155922.GU21986@parcelfarce.linux.theplanet.co.uk \
--to=matthew@wil.cx \
--cc=James.Smart@Emulex.Com \
--cc=dgilbert@interlog.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox