On Tue, Oct 31, 2017 at 04:22:56PM -0700, Dan Williams wrote:
Add hashed waitqueue infrastructure to wait for ZONE_DEVICE pages to
drop their reference counts and be considered idle for DMA. This
facility will be used for filesystem callbacks / wakeups when DMA to a
DAX mapped range of a file ends.
For now, this implementation does not have functional behavior change
outside of waking waitqueues that do not have any waiters present.
Hmm. What is the point of the patch then?
You also probably want to split this into one well documented patch
that changes the bit wait infrastructure and another one using it.