[sheepdog] [PATCH v5 0/3] cleaning the work queue mechanism

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Wed Dec 18 07:43:54 CET 2013


Current work queue mechanism of libsheepdog has some little but bother problems
related to coding style, functionality, and performance. This patchset solves
them.

v5:
 - protect wq_need_grow() with workers_lock

v4:
 - rebase on Yuan's patch

v3:
 - in the 3rd patch, add a new mutex for protecting nr_threads

v2:
 - preserve correct locking schemes for the data structures

Hitoshi Mitake (3):
  work: protect nr_threads by wi->workers_lock
  work: make locking by queue_work() more fine grain
  work: improve namings and fix obsolete comments

 lib/work.c |   80 +++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 47 insertions(+), 33 deletions(-)

-- 
1.7.10.4




More information about the sheepdog mailing list