[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] mem_event: use wait queue when ring is full
On Mon, Dec 05, Olaf Hering wrote: > Wakeup will take the number of free slots into account. This is not entirely tree unless this additional change is applied: diff -r cd163bcd0f06 xen/arch/x86/mm/mem_event.c --- a/xen/arch/x86/mm/mem_event.c +++ b/xen/arch/x86/mm/mem_event.c @@ -235,6 +235,7 @@ void mem_event_wake_requesters(struct me mem_event_ring_lock(med); free_req = RING_FREE_REQUESTS(&med->front_ring); + free_req -= med->foreign_producers; if ( free_req ) wake_up_nr(&med->wq, free_req); And perhaps the wake_up should be done outside the ring lock? Olaf _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |