Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2009 16:59:29 +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:  <200901251659.n0PGxbYj048086@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2009-01-25 16:59:29 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/kern             uipc_domain.c 
  Log:
  SVN rev 187690 on 2009-01-25 16:59:29Z by ed
  
  MFC r186747 to releng/7:
  
    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.51.2.3  +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?200901251659.n0PGxbYj048086>