[sheepdog] [PATCH 0/3] introduce a thread safe mechanism for register/unregister event

Hitoshi Mitake mitake.hitoshi at gmail.com
Mon Jan 13 09:40:36 CET 2014


The commit 6601e90cf2c5 (sheep: allow {register,unregister}_event to be  called
in worker thread) introduced dangerous change of
{register,unregister}_event(). The changed functions are halfway thread safe. It
will be bug prone stuff and shoud be fixed in a correct manner. This patch adds
real thread safe version functions for registering and unregistering events.

Hitoshi Mitake (3):
  Revert "sheep: allow {register,unregister}_event to be called in
    worker thread"
  event: add deferred event register/unregister mechanism
  sheep: let exec_local_req_async() use deferred register event

 include/event.h |  20 ++------
 lib/event.c     | 146 ++++++++++++++++++++++++++++++++++++++++++++++----------
 sheep/request.c |   3 +-
 3 files changed, 128 insertions(+), 41 deletions(-)

-- 
1.8.3.2




More information about the sheepdog mailing list