mlock() on DAX returns -ENOMEM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I've tried to mlock() a range of an ext4-dax file and got "-ENOMEM" in return.
Looking at the code, it seems that this is related to the fact that
DAX uses VM_MIXEDMAP and mlock assumes/requires regular page cache.
To me it seems that DAX should simply return success in mlock() as all
data is always in memory and no swapping is possible.
Is this a bug or intentional? Is there a fix planned?

Also, the same code path that is used in mlock is also used for
MAP_POPULATE (pre-fault pages in mmap) so this flag doesn't work as
well (doesn't fail but simply doesn't pre-fault anything).

Thanks,
Yigal
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux