lkml.org 
[lkml]   [2011]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v5 3.1.0-rc4-tip 18/26] uprobes: slot allocation.
From
Date
On Tue, 2011-09-20 at 17:33 +0530, Srikar Dronamraju wrote:
> +static void xol_wait_event(struct uprobes_xol_area *area)
> +{
> + if (atomic_read(&area->slot_count) >= UINSNS_PER_PAGE)
> + wait_event(area->wq,
> + (atomic_read(&area->slot_count) < UINSNS_PER_PAGE));
> +}

That's mighty redundant, look up wait_event() and try again.


\
 
 \ /
  Last update: 2011-09-27 14:39    [W:0.173 / U:0.128 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site