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

看板DFBSD_commit作者時間14年前 (2011/07/27 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 1384d50bccd94972e3cd368c8287372bfbaae02c Author: Matthew Dillon <dillon@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
文章代碼(AID): #1EByqAfR (DFBSD_commit)