Thread (25 messages) flat view 25 messages, 5 authors, 2019-09-01

Re: [PATCH V5 0/9] Fixes for vhost metadata acceleration

From: Jason Wang <hidden>
Date: 2019-08-15 03:28:14
Also in: kvm, linux-mm, lkml, virtualization

On 2019/8/14 上午12:41, Christoph Hellwig wrote:
On Tue, Aug 13, 2019 at 08:57:07AM -0300, Jason Gunthorpe wrote:
quoted
On Tue, Aug 13, 2019 at 04:31:07PM +0800, Jason Wang wrote:
quoted
What kind of issues do you see? Spinlock is to synchronize GUP with MMU
notifier in this series.
A GUP that can't sleep can't pagefault which makes it a really weird
pattern
get_user_pages/get_user_pages_fast must not be called under a spinlock.
We have the somewhat misnamed __get_user_page_fast that just does a
lookup for existing pages and never faults for a few places that need
to do that lookup from contexts where we can't sleep.

Yes, I do use __get_user_pages_fast() in the code.

Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help