git: kernel - Disable swapcache once paniced or if dumping

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Aug 1 19:40:39 PDT 2015


commit 1de864f09283417ed6f09851438a61a67bd209c1
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Aug 1 19:39:15 2015 -0700

    kernel - Disable swapcache once paniced or if dumping
    
    * Make sure we do not attempt to read or write via the swapcache if the
      machine is paniced or has been dumped via the debugger.  This avoids
      corrupting the dump and avoids corrupting reads shortcut through the
      swapcache under these conditions.

Summary of changes:
 sys/kern/vfs_bio.c    |  6 ++++++
 sys/vm/vm_swapcache.c | 10 ++++++++++
 2 files changed, 16 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1de864f09283417ed6f09851438a61a67bd209c1


-- 
DragonFly BSD source repository



More information about the Commits mailing list