mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
libnvdimm fixes for v6.11-rc4
Commitf467fee48d("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. -----BEGIN PGP SIGNATURE----- iIoEABYKADIWIQSgX9xt+GwmrJEQ+euebuN7TNx1MQUCZr9ThxQcaXJhLndlaW55 QGludGVsLmNvbQAKCRCebuN7TNx1MRqkAQD3DZJWxkDt4KbmT7lf1UkeW5UakxtF LizAOoQt5exdYgEA9xDZMzMPblF4DXt+pQBKW8+hkPPwYrTAiLE1zC9uSQQ= =R0DI -----END PGP SIGNATURE----- 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: "Commitf467fee48d("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
This commit is contained in:
commit
e4a55b555d
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user