linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regarding "scsi_lib: Decode T10 vendor IDs" d230823a1c4c3e97afd4c934b86b3975d5e20249
@ 2016-11-24 15:48 Sylvain Munaut
  2016-11-25  8:02 ` Hannes Reinecke
  0 siblings, 1 reply; 2+ messages in thread
From: Sylvain Munaut @ 2016-11-24 15:48 UTC (permalink / raw)
  To: LKML; +Cc: Paul Mackerras, Hannes Reinecke, Bart Van Assche, Martin K. Petersen

Hi,


Regarding this commit :

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d230823a1c4c3e97afd4c934b86b3975d5e20249

Looking at both the code and the comment, it seems to me you wanted
'T10' id to be a last resort if nothing else was available.

If that was the intent, it's not working ...

I have a Samsung 850 Pro SSD that has the NAA identifier after the T10
one in the vpd_pg83 and so it's returning the T10 now because it's
longer.

Did I misunderstand the intent ? Or is it a bug ? (for the latter, I
can write a patch myself, I just didn't want to loose my time if I
misunderstood).


Cheers,

   Sylvain Munaut

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Regarding "scsi_lib: Decode T10 vendor IDs" d230823a1c4c3e97afd4c934b86b3975d5e20249
  2016-11-24 15:48 Regarding "scsi_lib: Decode T10 vendor IDs" d230823a1c4c3e97afd4c934b86b3975d5e20249 Sylvain Munaut
@ 2016-11-25  8:02 ` Hannes Reinecke
  0 siblings, 0 replies; 2+ messages in thread
From: Hannes Reinecke @ 2016-11-25  8:02 UTC (permalink / raw)
  To: Sylvain Munaut, LKML; +Cc: Paul Mackerras, Bart Van Assche, Martin K. Petersen

On 11/24/2016 04:48 PM, Sylvain Munaut wrote:
> Hi,
> 
> 
> Regarding this commit :
> 
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d230823a1c4c3e97afd4c934b86b3975d5e20249
> 
> Looking at both the code and the comment, it seems to me you wanted
> 'T10' id to be a last resort if nothing else was available.
> 
> If that was the intent, it's not working ...
> 
> I have a Samsung 850 Pro SSD that has the NAA identifier after the T10
> one in the vpd_pg83 and so it's returning the T10 now because it's
> longer.
> 
Hmm.

> Did I misunderstand the intent ? Or is it a bug ? (for the latter, I
> can write a patch myself, I just didn't want to loose my time if I
> misunderstood).
> 
The T10 identifier should _always_ be the last resort; anything is
better than that :-)

But for NAA we have to check the length, as I've come across an array
which will (errorneously) report _two_ NAA identifiers, and only the
longer one of them will be providing the correct identification.
The other one is in fact the NAA for the target port, and thus identical
for all LUNs from that port :-(

So yeah, the intention was not to prefer a longer T10 to a NAA identifier.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		               zSeries & Storage
hare@suse.com			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-25  8:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-24 15:48 Regarding "scsi_lib: Decode T10 vendor IDs" d230823a1c4c3e97afd4c934b86b3975d5e20249 Sylvain Munaut
2016-11-25  8:02 ` Hannes Reinecke

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).