Re: [ovs-dev] [PATCH v3] poll-loop: Drop malloc() from every poll_block().

2015-04-14 Thread Ben Pfaff
On Tue, Apr 14, 2015 at 09:44:10AM -0400, Russell Bryant wrote: > The poll_block() function already has some state in thread-specific > storage that's used as a registry for all of the fds to poll() on the > next time poll_block() gets called. poll_block() was calling > malloc() and free() every t

[ovs-dev] [PATCH v3] poll-loop: Drop malloc() from every poll_block().

2015-04-14 Thread Russell Bryant
The poll_block() function already has some state in thread-specific storage that's used as a registry for all of the fds to poll() on the next time poll_block() gets called. poll_block() was calling malloc() and free() every time it was called to create the pollfd and wevents arrays needed to pass