On Sat, Nov 12, 2011 at 11:29:21AM -0800, Matthew Dillon wrote:
> 
> commit 4979e190653603f0f22dab90b92a4fab2a6fc5a9
> Author: Matthew Dillon <[email protected]>
> Date:   Sat Nov 12 11:26:43 2011 -0800
> 
>     kernel - Implement degenerate timeout case for select() and poll()
>     
>     * When select() or poll() are called with no descriptors and only a
>       timeout, call nanosleep1() instead of using tsleep() to generate
>       a more precise time delay.
>     
>     * Significantly improves postgresql's performance.

You need NULL check on ts before calling dotimeout_only(); the kernel
now crashes with just
    select(0, NULL, NULL, NULL, NULL);  /* wait forever until interrupted */

Reply via email to