DragonFly BSD
DragonFly commits List (threaded) for 2010-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Nov 2010 09:46:43 -0800 (PST)

commit 9e32a431c4b497abc342d1e43b592b4e4922eec5
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]