git: hammer2 - Revamp worker thread signaling

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jun 8 23:06:01 PDT 2016


commit 660d007e9543fa5a0aa91625b798958a4059bdc7
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Jun 8 22:10:49 2016 -0700

    hammer2 - Revamp worker thread signaling
    
    * Revamp how worker thread signaling works.  Get rid of a number of race
      conditions and use atomic ops.  We no longer need thr->lk.
    
    * Make hammer2_cluster_enable's scaling factor work with cluster_write()
      as well as cluster_read().

Summary of changes:
 sys/vfs/hammer2/hammer2.h         |  19 +++-
 sys/vfs/hammer2/hammer2_io.c      |   8 +-
 sys/vfs/hammer2/hammer2_synchro.c |  67 +++++++++--
 sys/vfs/hammer2/hammer2_thread.c  | 230 ++++++++++++++++++++++++++++----------
 sys/vfs/hammer2/hammer2_vnops.c   |  11 ++
 5 files changed, 261 insertions(+), 74 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/660d007e9543fa5a0aa91625b798958a4059bdc7


-- 
DragonFly BSD source repository


More information about the Commits mailing list