[sheepdog] [RFC PATCH 0/2] clean up list functions

MORITA Kazutaka morita.kazutaka at gmail.com
Mon Aug 19 10:36:15 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

I think this series makes our program safer and easier to understand,
but I'm not sure these changes are acceptable for the developers who
are familiar with Linux kernel.

MORITA Kazutaka (2):
  make list iterator functions safe against removal of entry
  split list_head into list_head and list_node

 dog/farm/farm.c           |    7 +--
 dog/farm/object_tree.c    |    6 +-
 dog/trace.c               |    5 +-
 dog/treeview.c            |   10 ++--
 include/list.h            |  139 ++++++++++++++++++++++-----------------------
 include/work.h            |    2 +-
 lib/event.c               |    2 +-
 lib/logger.c              |    2 +-
 lib/util.c                |   36 ++++++------
 lib/work.c                |    2 +-
 sheep/cluster.h           |    2 +-
 sheep/cluster/corosync.c  |    2 +-
 sheep/cluster/shepherd.c  |    4 +-
 sheep/cluster/zookeeper.c |    4 +-
 sheep/group.c             |   12 ++--
 sheep/object_cache.c      |   32 +++++------
 sheep/object_list_cache.c |    6 +-
 sheep/request.c           |   23 ++++----
 sheep/sheep_priv.h        |    6 +-
 sheep/trace/trace.h       |    2 +-
 sheep/vdi.c               |    2 +-
 shepherd/shepherd.c       |    8 +--
 22 files changed, 151 insertions(+), 163 deletions(-)

-- 
1.7.9.5




More information about the sheepdog mailing list