HAMMER - Add vfs.hammer.yield_check, yield on cpu intensive loops
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 16 Aug 2009 23:18:11 +0000 (16:18 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 16 Aug 2009 23:18:11 +0000 (16:18 -0700)
commit3e58344037c4372f07f8c3a946a5d2a07d9c6a11
tree8c60f45fd09c7a0e107fe1a7c7f133c8c39bdc5a
parente381e77cebc2ec7761ca2e59af6cbb785e56d055
HAMMER - Add vfs.hammer.yield_check, yield on cpu intensive loops

* When running in the kernel HAMMER can wind up cpu-bound.  This code
  allows it to yield to other processes during these periods.  This is
  a bit of a hack and may undergo further development.

* Default check for yield every 16 B-tree iterations.
sys/vfs/hammer/hammer.h
sys/vfs/hammer/hammer_btree.c
sys/vfs/hammer/hammer_flusher.c
sys/vfs/hammer/hammer_vfsops.c