Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2004 02:57:55 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/fs/fifofs fifo_vnops.c src/sys/kern uipc_socket.c
Message-ID:  <200406180257.i5I2vthY084282@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2004-06-18 02:57:55 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/fifofs        fifo_vnops.c 
    sys/kern             uipc_socket.c 
  Log:
  Merge some additional leaf node socket buffer locking from
  rwatson_netperf:
  
  Introduce conditional locking of the socket buffer in fifofs kqueue
  filters; KNOTE() will be called holding the socket buffer locks in
  fifofs, but sometimes the kqueue() system call will poll using the
  same entry point without holding the socket buffer lock.
  
  Introduce conditional locking of the socket buffer in the socket
  kqueue filters; KNOTE() will be called holding the socket buffer
  locks in the socket code, but sometimes the kqueue() system call
  will poll using the same entry points without holding the socket
  buffer lock.
  
  Simplify the logic in sodisconnect() since we no longer need spls.
  
  NOTE: To remove conditional locking in the kqueue filters, it would
  make sense to use a separate kqueue API entry into the socket/fifo
  code when calling from the kqueue() system call.
  
  Revision  Changes    Path
  1.99      +27 -6     src/sys/fs/fifofs/fifo_vnops.c
  1.180     +26 -13    src/sys/kern/uipc_socket.c



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