kernel - Fix bug in unp_gc()
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 18 Oct 2010 07:10:35 +0000 (00:10 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 24 Oct 2010 16:30:54 +0000 (09:30 -0700)
commitae4b7676505eaa88b2343922423312d1cdb0cfaa
treef56cf122d378381a3ef7f224fad2b4ff5c0f1fd6
parent0cda4ef64ff951334808e548a9219f7483cb7949
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.
sys/kern/kern_descrip.c
sys/kern/uipc_usrreq.c