Skip to contentSkip to conversation

Standardizing semantics around the per-file DAX flag

LSF/MM TOPIC Theodore Y. Ts'o 2 participants 2 messages Feb 13, 2019 – Feb 19, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

There's been a long-term disagreement about how the per-file DAX flag should work.

* Should it exist at all?
* What happens when the DAX flag is cleared?
* Should it be not allowed and return an error?
(Or maybe only if the file is otherwise opened anywhere in the system?)
* Should it only takes effect when the file system is unmounted, or when the inode drops out of the inode cache?
* Should we remove the flag entirely and make it be something the system automagically infers?

I had hoped consensus would be achieved before the ext4 per-file DAX flag lands, but it hasn't for a *long* time. Technically the DAX flag is "experimental", which technically means it could be removed --- although I suspect at this point, it would break some userspace, so our options about how to adjust the semantics of the flag are probably constrained.

- Ted
_______________________________________________
Linux-nvdimm mailing list [email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm

reviewer
#1 lore raw
Quoted 12 lines · Theodore Y. Ts'o

There's been a long-term disagreement about how the per-file DAX flag should work.

* Should it exist at all?
* What happens when the DAX flag is cleared?
* Should it be not allowed and return an error?
(Or maybe only if the file is otherwise opened anywhere in the system?)
* Should it only takes effect when the file system is unmounted, or when the inode drops out of the inode cache?
* Should we remove the flag entirely and make it be something the system automagically infers?

Quoted 6 lines

I had hoped consensus would be achieved before the ext4 per-file DAX flag lands, but it hasn't for a *long* time. Technically the DAX flag is "experimental", which technically means it could be removed --- although I suspect at this point, it would break some userspace, so our options about how to adjust the semantics of the flag are probably constrained.

Well, there's no filesystem that would really support the DAX flag currently (XFS accepts it, stores it, but does nothing with it). So I think we are reasonably free in defining the semantics. Also I think this is closely related to Dan's topic "What should be done to remove experimental tag from DAX" (or however it was called).

Honza

Signature · 6 lines
Jan Kara <[email protected]>
SUSE Labs, CR
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm