kernel - vfsync() use synchronous bwrite() in low-memory situations
commitaa0150ba7da7399b3e4017978cece102dd3eedbc
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 8 Sep 2017 15:44:13 +0000 (8 08:44 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 8 Sep 2017 15:44:13 +0000 (8 08:44 -0700)
treea420c6d4e8f856b94963dab217da909dceb080d5
parent32c821cfa9bc05a6e4411256cd9b34751f3322a3
kernel - vfsync() use synchronous bwrite() in low-memory situations

* For now, make vfsync() use a synchronous bwrite() in low-memory
  situations and do not call vm_wait_nominal().  This could wind up
  being a chicken-or-egg issue unfortunately.

* Addresses issues where the pageout daemon gets indirectly deadlocked
  when other unrelated kernel threads (aka H2 support threads) are
  flushing buffers.
sys/kern/vfs_subr.c