git: HAMMER VFS - Ensure sufficient free memory is available before large allocation

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Mar 4 16:11:04 PST 2010


commit c652be54ae5f31f13eb03acfa533b9228843a7c0
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Mar 4 16:06:53 2010 -0800

    HAMMER VFS - Ensure sufficient free memory is available before large allocation
    
    * The HAMMER rebalancing code can be a heavy user of kernel memory when
      collecting B-Tree nodes to rebalance.
    
      Call the new vm_wait_nominal() function before allocating said memory
      in an attempt to avoid VM/VFS deadlocks when memory is low.
    
    Reported-by: Francois Tigeot <ftigeot at wolfpond.org>

Summary of changes:
 sys/vfs/hammer/hammer.h           |    1 +
 sys/vfs/hammer/hammer_rebalance.c |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c652be54ae5f31f13eb03acfa533b9228843a7c0


-- 
DragonFly BSD source repository





More information about the Commits mailing list