From: Bart Van Assche <bart.vanassche@sandisk.com>
To: Hannes Reinecke <hare@suse.de>,
James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Christoph Hellwig <hch@lst.de>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCHv2] sd: retry READ CAPACITY for ALUA state transition
Date: Tue, 7 Jul 2015 13:48:26 -0700 [thread overview]
Message-ID: <559C3B1A.3020002@sandisk.com> (raw)
In-Reply-To: <559B6F24.6020804@suse.de>
On 07/06/2015 11:18 PM, Hannes Reinecke wrote:
> However, to handle the above case correctly we would need to keep
> track of the entire multipath topology, to figure out which devices
> belong to that relative target port and might need to be updated
> (there might be several paths in standby, and we will have sent the
> RTPG only for one of them).
> Patches for that are not done yet, so I thought the above patch
> would be a simple stop-gap measure.
Hello Hannes,
Are you sure that keeping track of the entire multipath topology would
be required to implement what I proposed ? In the patch "scsi_dh_alua:
Use separate alua_port_group structure"
(http://thread.gmane.org/gmane.linux.scsi/101388/focus=101380) I see
that the new scsi_dh_alua code keeps track of the target port group
(TPG) ID and relative target port (RTP) ID. As you know this information
can be queried for each LUN via the Device Identification VPD page. How
about caching the TPG and RTP IDs per LUN such that the scsi_dh_alua
code can figure out which LUNs are associated with which target ports by
iterating over the known LUNs ?
Thanks,
Bart.
next prev parent reply other threads:[~2015-07-07 20:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 11:12 [PATCHv2] sd: retry READ CAPACITY for ALUA state transition Hannes Reinecke
2015-07-06 15:13 ` Bart Van Assche
2015-07-06 20:57 ` James Bottomley
2015-07-07 6:18 ` Hannes Reinecke
2015-07-07 20:48 ` Bart Van Assche [this message]
2015-07-08 6:20 ` Hannes Reinecke
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=559C3B1A.3020002@sandisk.com \
--to=bart.vanassche@sandisk.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=hare@suse.de \
--cc=hch@lst.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).