Re: [PATCH v5 3.1.0-rc4-tip 18/26] uprobes: slot allocation.

From: Peter Zijlstra
Date: Tue Sep 27 2011 - 08:36:58 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/