git: kernel - Fix panic when the ccd device is used with swapcache

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jul 26 20:41:53 PDT 2011


commit 1384d50bccd94972e3cd368c8287372bfbaae02c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jul 26 20:37:54 2011 -0700

    kernel - Fix panic when the ccd device is used with swapcache
    
    * The CCD device does not populate bp->b_xio.xio_npages or xio_pages[].
      A quirk in the xio test in vn_cache_strategy() could result in a null
      pointer dereference panic.
    
    * Fix the test to avoid the panic.  Note that swapcache does not currently
      work well with the CCD device for stripe-crossing I/Os due to the way
      CCD breaks the I/O up.  It should no longer panic, though.

Summary of changes:
 sys/kern/vfs_bio.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1384d50bccd94972e3cd368c8287372bfbaae02c


-- 
DragonFly BSD source repository





More information about the Commits mailing list