Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jan 2009 19:22:53 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern uipc_domain.c
Message-ID:  <200901050011.n050BAWj087691@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2009-01-04 19:22:53 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_domain.c 
  Log:
  SVN rev 186747 on 2009-01-04 19:22:53Z by ed
  
  Remove Giant locking from domains list.
  
  During boot, the domain list is locked with Giant. It is not possible to
  register any protocols after the system has booted, so the lock is only
  used to protect insertion of entries.
  
  There is already a mutex in uipc_domain.c called dom_mtx. Use this mutex
  to lock the list, instead of using Giant. It won't matter anything with
  respect to performance, but we'll never get rid of Giant if we don't
  remove from places where we don't need it.
  
  Approved by:    rwatson
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.56      +9 -9      src/sys/kern/uipc_domain.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901050011.n050BAWj087691>