]> asedeno.scripts.mit.edu Git - linux.git/commit
nvdimm: Use namespace index data to reduce number of label reads needed
authorAlexander Duyck <alexander.h.duyck@linux.intel.com>
Wed, 10 Oct 2018 23:39:35 +0000 (16:39 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 12 Oct 2018 15:39:31 +0000 (08:39 -0700)
commit7d47aad4570e5e6e9a8162bb417ca9b74132f27c
treed3ced75bf26076e6be01c513f7fdfe22de5a6f1f
parent2d657d17f72d2ae70c02f0d0ea6a04ad0f016b57
nvdimm: Use namespace index data to reduce number of label reads needed

This patch adds logic that is meant to make use of the namespace index data
to reduce the number of reads that are needed to initialize a given
namespace. The general idea is that once we have enough data to validate
the namespace index we do so and then proceed to fetch only those labels
that are not listed as being "free". By doing this I am seeing a total time
reduction from about 4-5 seconds to 2-3 seconds for 24 NVDIMM modules each
with 128K of label config area.

Reviewed-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/dimm.c
drivers/nvdimm/label.c
drivers/nvdimm/label.h