Message ID | 20240809031155.2837271-1-chengzhihao1@huawei.com (mailing list archive) |
---|---|
State | Accepted |
Commit | d5240fa65db071909e9d1d5adcc5fd1abc8e96fe |
Headers | show |
Series | nvdimm/pmem: Set dax flag for all 'PFN_MAP' cases | expand |
diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c index 1ae8b2351654..210fb77f51ba 100644 --- a/drivers/nvdimm/pmem.c +++ b/drivers/nvdimm/pmem.c @@ -498,7 +498,7 @@ static int pmem_attach_disk(struct device *dev, } if (fua) lim.features |= BLK_FEAT_FUA; - if (is_nd_pfn(dev)) + if (is_nd_pfn(dev) || pmem_should_map_pages(dev)) lim.features |= BLK_FEAT_DAX; if (!devm_request_mem_region(dev, res->start, resource_size(res),