]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
Switch from select() to poll() in xenconsoled's IO loop
authorWei Liu <wei.liu2@citrix.com>
Thu, 17 Jan 2013 13:53:03 +0000 (13:53 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 17 Jan 2013 13:53:03 +0000 (13:53 +0000)
commitcc5434c933153c4b8812d1df901f8915c22830a8
tree674372001352444db418e68cbf2a847fd68cc390
parentc7861d0cbc9a140216ecc4cffe871680ba12eb54
Switch from select() to poll() in xenconsoled's IO loop

In Linux select() typically supports up to 1024 file descriptors. This can be
a problem when user tries to boot up many guests. Switching to poll() has
minimum impact on existing code and has better scalibility.

pollfd array is dynamically allocated / reallocated. If the array fails to
expand, we just ignore the incoming fd.

Updated: reset *_pollfd after use.

This fixes regression 14869.

Also remove unused slave_pollfd in strcut domain.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/console/daemon/io.c