Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2005 15:12:24 +0000 (UTC)
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net rtsock.c
Message-ID:  <200509101512.j8AFCPkG044227@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
csjp        2005-09-10 15:12:24 UTC

  FreeBSD src repository

  Modified files:
    sys/net              rtsock.c 
  Log:
  Protect interface and address lists using the appropriate mutex. These
  locks were not aquired because the user buffers were not wired, thus it was
  possible that that SYSCTL_OUT could sleep, causing a number of different
  problems such as lock ordering issues and dead locks.
  
  -Wire user supplied buffer to ensure SYSCTL_OUT will not sleep.
  -Pickup ifnet locks to protect the list.
  -Where applicable pickup address locks.
  -Pickup radix node head locks.
  -Remove splnet stubs
  -Remove various comments about locking here, because they are no
   longer needed.
  
  It is the hope that these changes will make sysctl_rtsock MP safe.
  
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.129     +16 -16    src/sys/net/rtsock.c



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