kernel - Correct bug in buf/bio locking work
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 11 Nov 2013 17:11:43 +0000 (09:11 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 11 Nov 2013 17:11:43 +0000 (09:11 -0800)
commit8dc56d2833468735ac991fc9ab31f598519b8e2b
treeb5fa75a5cf532de6f9147a639813b1c9be0f8e5c
parent9a97a5a60caab0608ed9c5940083d159bd9b94b2
kernel - Correct bug in buf/bio locking work

* Use atomic_swap_int() to test-and-clear the buffer daemon request, and
  tsleep_interlock/tsleep to catch any races.
sys/kern/vfs_bio.c