kernel - Close possible hole in hammer inval code
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 11 Nov 2010 18:12:59 +0000 (10:12 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 11 Nov 2010 18:12:59 +0000 (10:12 -0800)
commit3b98d91253c66fb99ffe1023d7c5ae1c5411645f
tree5e574d496b4c451076e3658f027d35cbafc2d9ee
parent51c93bd515324baed8cea211abb517df00ab2c19
kernel - Close possible hole in hammer inval code

* Do not use FINDBLK_TEST, instead have findblk() return a locked buffer
  cache buffer and deal with it from there.  While the original code
  should have been ok (it would getblk() the buffer cache in either case),
  it depended on certain MP race characteristics that might not hold so
  don't take any chances.

* This does not fix any known issues but removes some uncertainty.
sys/vfs/hammer/hammer_io.c