From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: "Knight, Frederick" <Frederick.Knight@netapp.com>
Cc: Mike Snitzer <snitzer@redhat.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org, Christoph Hellwig <hch@infradead.org>
Subject: Re: [PATCH] scsi: relax PAGE LENGTH check for thin provisioning UNMAP support
Date: Fri, 07 May 2010 00:52:50 -0400 [thread overview]
Message-ID: <yq1r5lo71p9.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <AC32D7C72530234288643DD5F1435D5309994F2A@RTPMVEXC1-PRD.hq.netapp.com> (Frederick Knight's message of "Thu, 6 May 2010 10:27:43 -0400")
>>>>> "Fred" == Knight, Frederick <Frederick.Knight@netapp.com> writes:
Fred,
Fred> There are no guarantees about what the T10 committee will do to
Fred> that page in the draft, or in any future versions of SBC.
Obviously. However, we're usually pretty good at tracking the drafts
and have a pretty quick turnaround for changes.
Fred> In reality, any value > 32 (20h) will mean that you probably have
Fred> all the data you want to look at today. YES, any device that puts
Fred> such a small value into the page length field is non-compliant
Fred> (and therefore, the contents of those fields may be non-compliant
Fred> as well). So, allowing a value less than 3Ch would be risky.
Our main concern is that we're dealing with a ton of low-end devices
that violate the SCSI protocols in the weirdest ways. Some return the
same blob of data regardless of which VPD page you ask for. So when we
have a mandated value we can key off of as an extra safeguard we tend to
use it.
In this particular case it might not be such a big deal since we're
already gated by TPE being enabled in READ CAPACITY(16). The latter is
currently restricted by the device server claiming compliance with SPC3
or better. However, we may have to relax that criteria soon since we'll
have USB drives coming out where READ CAPACITY(10) won't cut it. And
that opens the flood gates for random debris lingering at byte 12 and
beyond in READ CAPACITY(16).
My main concern with Mike's patch is that I think it's a bit premature
given that there's already room to grow in the current block limits VPD
and that relaxing the page length test could cause us to accept random
garbage as valid thin provisioning information.
--
Martin K. Petersen Oracle Linux Engineering
prev parent reply other threads:[~2010-05-07 4:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 21:50 [PATCH] scsi: relax PAGE LENGTH check for thin provisioning UNMAP support Mike Snitzer
2010-05-06 4:28 ` Martin K. Petersen
2010-05-06 11:24 ` Mike Snitzer
2010-05-06 14:27 ` Knight, Frederick
2010-05-07 4:52 ` Martin K. Petersen [this message]
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=yq1r5lo71p9.fsf@sermon.lab.mkp.net \
--to=martin.petersen@oracle.com \
--cc=Frederick.Knight@netapp.com \
--cc=hch@infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=snitzer@redhat.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