git: DragonFly_RELEASE_2_8 kernel - Close possible hole in hammer inval code

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Nov 18 09:47:19 PST 2010


commit 9e32a431c4b497abc342d1e43b592b4e4922eec5
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Nov 11 10:12:59 2010 -0800

    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.

Summary of changes:
 sys/vfs/hammer/hammer_io.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9e32a431c4b497abc342d1e43b592b4e4922eec5


-- 
DragonFly BSD source repository





More information about the Commits mailing list