public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Christoph Hellwig <hch@infradead.org>
Cc: James Bottomley <James.Bottomley@SteelEye.com>,
	SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] Sanitize PQ3 device handling
Date: Wed, 18 May 2005 16:33:29 +0200	[thread overview]
Message-ID: <428B5239.5090502@suse.de> (raw)
In-Reply-To: <20050518141459.GA22916@infradead.org>

Christoph Hellwig wrote:
> On Wed, May 18, 2005 at 04:05:36PM +0200, Hannes Reinecke wrote:
>>>If scsi_probe_and_add_lun returns SCSI_SCAN_TARGET_PRESENT sdev isn't valid at
>>>this point.  You should probably default to SCSI_2 for that case.
>>>
>>How so? This is exactly the behaviour I've removed. sdev is valid even
>>for SCSI_SCAN_TARGET_PRESENT.
>>If not please show me.
> 
> Indeed, you replaced the check at the end of scsi_probe_and_add_lun.  I don't
> think it makes a lot of sense to leave around the stale scsi_dev for PQ3, though.
Why not? sg connects to it and you can ask it to provide lots of useless
information. Eg doing an report_luns by hand if the configuration of the
SAN has changed; PQ3 only states that _this_ device will never have a
LUN attached.
> 
> Doing a REPORT_LUNS for SCSI_SCAN_TARGET_PRESENT does OTOH make a lot of sense,
> there's nothing in the spec against it.  So what about dropping that device
> after we're done with REPORT_LUNS?
> 
See above. I'd like to have them around to be able to send commands to it.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke			hare@suse.de
SuSE Linux AG				S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2005-05-18 14:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-18  9:43 [PATCH] Sanitize PQ3 device handling Hannes Reinecke
2005-05-18 14:01 ` Christoph Hellwig
2005-05-18 14:05   ` Hannes Reinecke
2005-05-18 14:14     ` Christoph Hellwig
2005-05-18 14:33       ` Hannes Reinecke [this message]
2005-05-18 17:06         ` Luben Tuikov

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=428B5239.5090502@suse.de \
    --to=hare@suse.de \
    --cc=James.Bottomley@SteelEye.com \
    --cc=hch@infradead.org \
    --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