LWN.net Logo

EPOLL_CTL_DISABLE, epoll, and API design

EPOLL_CTL_DISABLE, epoll, and API design

Posted Oct 25, 2012 9:05 UTC (Thu) by ncm (subscriber, #165)
Parent article: EPOLL_CTL_DISABLE, epoll, and API design

I'm coming around to wahern's position noted in comments on the previous article: it's an architectural design error for threads to share a resource but not keep track of which are using it. If you design that way, no amount of EPOLL_CTL_DISABLE can make your design good. No end of similar problems will be waiting to surface.

I'm also much more impressed with kjp's solution than is our esteemed author. It attacks the problem at the root, even enabling rescue of such poorly architected designs (anyway until the next flaw uncloaks). Using the field suggested doesn't "burn" it: other uses can piggyback on the same hash node. By such reasoning any use at all would burn it, so no use can be deserving enough, and it never gets used for anything.

Unless I am misunderstanding the argument...


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds