From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Tom Yan <tom.ty89@gmail.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH 1/1] sd: fix lbprz discard granularity as expected
Date: Mon, 14 Mar 2016 16:07:19 -0400 [thread overview]
Message-ID: <yq1egbcj020.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <CAGnHSE=0qB2NyMxRu3Y+8VjJ-Ee7a3_O3qjprCEtfGg69dPnOg@mail.gmail.com> (Tom Yan's message of "Sat, 12 Mar 2016 13:43:02 +0800")
>>>>> "Tom" == Tom Yan <tom.ty89@gmail.com> writes:
Tom,
Tom> But yeah if it has unmap granularity reported to be, for example,
Tom> 16, then it will not be correctly set with min_not_zero().
Tom> Wait, shouldn't it be:
Tom> max(sdkp->logical_block_size, sdkp->unmap_granularity * logical_block_size);
Tom> then?
Let's take the your example of a drive with 512-byte logical blocks and
4096-byte physical blocks. How would a drive partially unmap a sector?
--
Martin K. Petersen Oracle Linux Engineering
next prev parent reply other threads:[~2016-03-14 20:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 8:16 [PATCH 1/1] sd: fix lbprz discard granularity as expected tom.ty89
2016-03-10 9:15 ` Tom Yan
2016-03-11 2:16 ` Martin K. Petersen
2016-03-11 3:53 ` Tom Yan
2016-03-11 12:37 ` Martin K. Petersen
2016-03-11 14:55 ` Tom Yan
2016-03-11 21:41 ` Martin K. Petersen
2016-03-12 5:37 ` Tom Yan
2016-03-12 5:43 ` Tom Yan
2016-03-14 20:07 ` Martin K. Petersen [this message]
2016-03-11 2:08 ` Martin K. Petersen
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=yq1egbcj020.fsf@sermon.lab.mkp.net \
--to=martin.petersen@oracle.com \
--cc=linux-scsi@vger.kernel.org \
--cc=tom.ty89@gmail.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