From: James Bottomley <James.Bottomley@SteelEye.com>
To: James.Smart@Emulex.Com
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>,
hch@infradead.org, Mike Anderson <andmike@us.ibm.com>,
Martin Hicks <mort@wildopensource.com>,
andrew.vasquez@qlogic.com
Subject: Re: [PATCH] [Update #2] suspending I/Os to a device
Date: 30 Sep 2004 17:40:46 -0400 [thread overview]
Message-ID: <1096580453.1764.128.camel@mulgrave> (raw)
In-Reply-To: <0B1E13B586976742A7599D71A6AC733C086618@xbl3.ma.emulex.com>
On Thu, 2004-09-30 at 16:57, James.Smart@Emulex.Com wrote:
> Folks,
>
> Here is the suspend i/o patch, updated to run with host and target attributes for obtaining the timeout values. As a matter of course - this adds host and target attribute use to the FC transport.
>
> This patch depends on the bitkeeper scsi-target-2.6 tree.
Well, it's getting better, but I'm slightly confused by the attribute
levels.
Surely node_name, port_name and port_id are target attributes only?
Also, since disconnection by cable pull can only happen at the host or
target level, there's surely no need for a device dev_loss_tmo
parameter?
> struct scsi_target {
> struct scsi_device *starget_sdev_user;
> + struct Scsi_Host *shost;
> struct device dev;
> unsigned int channel;
> unsigned int id; /* target id ... replace
This is unnecessary. You can deduce the scsi host from the device's
parent. If you look at the sym2 updates, you see things like:
struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
+fc_target_unblock(struct scsi_target *starget)
> +{
> + struct scsi_device *sdev;
> +
> + /*
> + * Stop the target timer first. Take no action on the del_timer
> + * failure as the state machine state change will validate the
> + * transaction.
> + */
> + del_timer_sync(&fc_starget_dev_loss_timer(starget));
> +
> + shost_for_each_device(sdev, starget->shost) {
> + if (sdev->id == starget->id)
> + scsi_internal_device_unblock(sdev);
> + }
This is wrong, See how iteration over host is done in
scsi_lib.c:scsi_target_resume
James
next prev parent reply other threads:[~2004-09-30 21:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-30 20:57 [PATCH] [Update #2] suspending I/Os to a device James.Smart
2004-09-30 21:40 ` James Bottomley [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-10-01 13:54 James.Smart
2004-10-01 16:02 ` Patrick Mansfield
2004-10-01 16:15 James.Smart
2004-10-01 16:21 James.Smart
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=1096580453.1764.128.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=James.Smart@Emulex.Com \
--cc=andmike@us.ibm.com \
--cc=andrew.vasquez@qlogic.com \
--cc=hch@infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mort@wildopensource.com \
/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