git: kernel - Add minor VM shortcuts (2)

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Mar 5 11:21:39 PST 2020


commit 19b9ca0e75920c2253819e7fcd441ca1ac8e0ea9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Mar 5 10:40:54 2020 -0800

    kernel - Add minor VM shortcuts (2)
    
    * Fix bug last commit.  I was trying to shortcut the case where the
      vm_page was not flagged MAPPED or WRITEABLE, but didn't read my
      own code comment above the conditional and issued a vm_page_free()
      without first checking to see if the VM object could be locked.
    
      This lead to a livelock in the kernel under heavy loads.
    
    * Rejigger the fix to do the shortcut in a slightly different
      place.

Summary of changes:
 sys/vm/vm_page.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/19b9ca0e75920c2253819e7fcd441ca1ac8e0ea9


-- 
DragonFly BSD source repository



More information about the Commits mailing list