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

git: kernel - Close possible hole in hammer inval code


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Nov 2010 20:41:12 -0800 (PST)

commit 3b98d91253c66fb99ffe1023d7c5ae1c5411645f
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/3b98d91253c66fb99ffe1023d7c5ae1c5411645f


-- 
DragonFly BSD source repository



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