Skip to content

Commit e4a55b5

Browse files
committed
Merge tag 'libnvdimm-fixes-6.11-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm fix from Ira Weiny: "Commit f467fee ("block: move the dax flag to queue_limits") broke the DAX tests by skipping over the legacy pmem mapping pages case. Set the DAX flag in this case as well" * tag 'libnvdimm-fixes-6.11-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: nvdimm/pmem: Set dax flag for all 'PFN_MAP' cases
2 parents 60cb1da + d5240fa commit e4a55b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvdimm/pmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ static int pmem_attach_disk(struct device *dev,
498498
}
499499
if (fua)
500500
lim.features |= BLK_FEAT_FUA;
501-
if (is_nd_pfn(dev))
501+
if (is_nd_pfn(dev) || pmem_should_map_pages(dev))
502502
lim.features |= BLK_FEAT_DAX;
503503

504504
if (!devm_request_mem_region(dev, res->start, resource_size(res),

0 commit comments

Comments
 (0)