git: kernel - Fix bug in unp_gc()

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Oct 18 00:18:05 PDT 2010


commit 2aa0ab56fd6eaeb11183d27161feb1df1c292bb7
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Oct 18 00:10:35 2010 -0700

    kernel - Fix bug in unp_gc()
    
    * Fix a race against a file close where FDEFER can wind up being left
      set.
    
    * Fix a panic during unix domain socket garbage collection where a token
      was being acquired with a spinlock held.  Use trytoken instead and if
      it fails simply defer checking of the (fp) in question.

Summary of changes:
 sys/kern/kern_descrip.c |    2 +
 sys/kern/uipc_usrreq.c  |   68 +++++++++++++++++++++++++---------------------
 2 files changed, 39 insertions(+), 31 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2aa0ab56fd6eaeb11183d27161feb1df1c292bb7


-- 
DragonFly BSD source repository





More information about the Commits mailing list