commit | 2313216f861f955c2091f1593ea95d5dc88493f4 | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <willy@infradead.org> | Wed Nov 22 11:11:31 2017 -0500 |
committer | Matthew Wilcox <willy@infradead.org> | Sun Oct 21 10:46:40 2018 -0400 |
tree | a99b5b43a66a6ee840e2b2619d2095c98623bd7d | |
parent | 7ae3424fb4b5587d9b2db12a4b1040c52073dd5c [diff] |
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: Matthew Wilcox <willy@infradead.org> Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>