Re: [PATCH 2/22] /dev/random: Cleanup sleep logic

From: Matt Mackall
Date: Thu Mar 25 2004 - 22:52:00 EST

On Thu, Mar 25, 2004 at 04:14:04PM -0800, Andrew Morton wrote:
> Matt Mackall <mpm@xxxxxxxxxxx> wrote:
> >
> > Cleanup /dev/random sleep logic
> >
> > Original code checked in output pool rather than input pool for wakeup
> So what is the rationale for switching it over to the primary pool?

Because the primary (input) pool is where entropy appears. If we check
the secondary (output) pool, we can go to sleep when there's still
entropy available.

Matt Mackall : : Linux development and consulting
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at