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

git: kernel - Fix swap space leak


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Dec 2011 14:18:12 -0800 (PST)

commit 0301c407992b4e73ffebb89e08bfc1efe3c4bec6
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Tue Dec 27 14:15:50 2011 -0800

    kernel - Fix swap space leak
    
    * swp_pager_meta_free_callback() had a bug where the last swap block
      in the swblock{} structure was not being freed from the swap bitmap.
    
    * Also fix two rare race conditions.  swp_pager_freeswapspace() can
      block, causing the VM object token to be temporarily unlocked.  Deal
      with the race by not decrementing the swb_count field until after
      swp_pager_freeswapspace() is called.
    
    Reported-by: sephe

Summary of changes:
 sys/vm/swap_pager.c |   33 ++++++++++++++++++++++++---------
 1 files changed, 24 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0301c407992b4e73ffebb89e08bfc1efe3c4bec6


-- 
DragonFly BSD source repository



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