git: kernel - dm - Add support for BUF_CMD_FLUSH

看板DFBSD_commit作者時間15年前 (2010/08/15 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 3adc52bcc8de8b33dc907dbde6a8c82fda056f93 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sat Aug 14 12:04:52 2010 -0700 kernel - dm - Add support for BUF_CMD_FLUSH * Change the nestiobuf_*() code to count the number of sub-bios issued instead of counting the resid. This allows the nestiobuf_*() API to be used to BUF_CMD_FLUSH. * Change the nestiobuf_*() API. The nestiobuf_start() command is now nestiobuf_add(). Add a nestiobuf_init(mbio) and nestiobuf_start(mbio) wrapper around the adds. * Explicitly check for allowed BUF_CMD_* commands in device-mapper.c * Add a bypass to device-mapper.c to cause certain commands to be sent to all tbl's (BUF_CMD_FLUSH). * Add explicit suppor for BUF_CMD_FLUSH to dm_target_stripe.c * Change b_resid loading semantics to load upon completion of the I/O. Summary of changes: sys/dev/disk/dm/device-mapper.c | 62 +++++++++++++------- sys/dev/disk/dm/dm_target_stripe.c | 107 ++++++++++++++++++++++-------------- sys/dev/disk/dm/dm_target_zero.c | 4 +- sys/kern/vfs_bio.c | 79 ++++++++++++++++++++++---- sys/sys/buf.h | 5 +- 5 files changed, 178 insertions(+), 79 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3adc52bcc8de8b33dc907dbde6a8c82fda056f93 -- DragonFly BSD source repository
文章代碼(AID): #1CPkytvx (DFBSD_commit)