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, 18 Nov 2010 17:43:42 +0000 (09:43 -0800)
commit9e32a431c4b497abc342d1e43b592b4e4922eec5
tree64a36d430b27f8e21d2c3c3da3cc227c6809d94f
parent63948e839781ff95b7f762aa2bc8a7f14970a48c
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