]> git.baikalelectronics.ru Git - kernel.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)
commit047b65bfe2c234da094f6b624dace7567141431d
treed3ced75bf26076e6be01c513f7fdfe22de5a6f1f
parent5d38282f32ee6092f2901e18c51dc7043ccd1abb
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