cvs commit: src/sys/sys resourcevar.h src/sys/kern kern_resource.c

Pawel Jakub Dawidek pjd at
Sun Mar 16 14:29:03 PDT 2008

pjd         2008-03-16 21:29:02 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              resourcevar.h 
    sys/kern             kern_resource.c 
  - Use wait-free method to manage ui_sbsize and ui_proccnt fields in the
    uidinfo structure. This entirely removes contention observed on the
    ui_mtxp mutex (as it is now gone).
  - Convert the uihashtbl_mtx mutex to a rwlock, as most of the time we just
    need to read-lock it.
  Reviewed by:    jhb, jeff, kris & others
  Tested by:      kris
  Revision  Changes    Path
  1.186     +50 -60    src/sys/kern/kern_resource.c
  1.53      +3 -7      src/sys/sys/resourcevar.h

More information about the cvs-src mailing list