From: mb@lightnvm.io (Matias Bjørling)
Subject: [PATCH V2 4/4] nvme: lightnvm: add late setup of block size and metadata
Date: Thu, 15 Feb 2018 09:57:39 +0100 [thread overview]
Message-ID: <e4b51c0b-35da-705e-b723-2f568fee69a7@lightnvm.io> (raw)
In-Reply-To: <098A1343-A9FB-47BD-A4B5-6E77A1861A4B@cnexlabs.com>
On 02/12/2018 09:21 PM, Javier Gonzalez wrote:
>
>> On 9 Feb 2018,@01.27, Matias Bj?rling <mb@lightnvm.io> wrote:
>>
>> The nvme driver sets up the size of the nvme namespace in two steps.
>> First it initializes the device with standard logical block and
>> metadata sizes, and then sets the correct logical block and metadata
>> size. Due to the OCSSD 2.0 specification relies on the namespace to
>> expose these sizes for correct initialization, let it be updated
>> appropriately on the LightNVM side as well.
>>
>> Signed-off-by: Matias Bj?rling <mb at lightnvm.io>
>> ---
>>
>
> This late initialization breaks ligthnvm's core init since the sector
> size (csecs) is used on the first init part to set the logical block size.
>
> nvm_core_init -> blk_queue_logical_block_size(dev->q, dev_geo->c.csecs);
>
> We can do do a nvme_nvm_revalidate and set this on the revalidation path
> instead of simply updating the info as in nvme_nvm_update_nvm_info().'
I believe that is what the patch does (nvme_nvm_update_nvm_info is
called from the nvme_revalidate_disk context).
The nvm_core_init initialization of the block size is redundant and
should be removed. I'll update the patch.
prev parent reply other threads:[~2018-02-15 8:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-09 9:27 [PATCH V2 0/4] lightnvm: base 2.0 implementation Matias Bjørling
2018-02-09 9:27 ` [PATCH V2 1/4] lightnvm: make 1.2 data structures explicit Matias Bjørling
2018-02-09 9:27 ` [PATCH V2 2/4] lightnvm: flatten nvm_id_group into nvm_id Matias Bjørling
2018-02-09 9:27 ` [PATCH V2 3/4] lightnvm: add 2.0 geometry identification Matias Bjørling
2018-02-09 9:27 ` [PATCH V2 4/4] nvme: lightnvm: add late setup of block size and metadata Matias Bjørling
2018-02-12 20:21 ` Javier Gonzalez
2018-02-15 8:57 ` Matias Bjørling [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=e4b51c0b-35da-705e-b723-2f568fee69a7@lightnvm.io \
--to=mb@lightnvm.io \
/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