memfd: Convert memfd_wait_for_pins to XArray
Simplify the locking by taking the spinlock while we walk the tree on the assumption that many acquires and releases of the lock will be worse than holding the lock while we process an entire batch of pages. Signed-off-by: NMatthew Wilcox <willy@infradead.org> Reviewed-by: NMike Kravetz <mike.kravetz@oracle.com>
Showing
想要评论请 注册 或 登录