nvdimm: reduce duplicated wpq flushes
authorDave Jiang <dave.jiang@intel.com>
Mon, 26 Sep 2016 18:06:50 +0000 (11:06 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 1 Oct 2016 02:12:52 +0000 (19:12 -0700)
commitdb58028ee4e360430de8e3b48f657dc798ee6591
tree1f59b23cb217117e18c557b3705e7a66976cbe1e
parent595c73071e6641e59b83911fbb4026e767471000
nvdimm: reduce duplicated wpq flushes

Existing implemenetation writes to all the flush hint addresses for a
given ND region. This is not necessary as the flushes are per imc and
not per DIMM. Search the mappings and clear out the duplicates at init
to avoid multiple flush to the same imc.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/region_devs.c