[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/44763: select/poll direct-set optimization seems racy
>Synopsis: select/poll direct-set optimization seems racy
>Arrival-Date: Thu Mar 24 07:05:00 +0000 2011
>Originator: YAMAMOTO Takashi
>Release: NetBSD current
System: NetBSD current
select/poll direct-set optimization seems racy.
- there is a race between sel_setevents and pollscan/selscan wrt
ofds bits/revents updates. thus l_selret is inaccurate.
- sel_setevents can increase l_selret more than desirable if selnotify
is called again and again quickly enough
a workaround: NO_DIRECT_SELECT
Main Index |
Thread Index |