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>
Mon, 18 Oct 2010 07:10:35 +0000 (00:10 -0700)
commit2aa0ab56fd6eaeb11183d27161feb1df1c292bb7
tree0ec170635e1bc37af2b6f7edfb015f365d14abec
parent59a5a4e8615aa00fe05da172013a7fb241e5f880
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