kernel - dm - Add support for BUF_CMD_FLUSH
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 14 Aug 2010 19:04:52 +0000 (12:04 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 14 Aug 2010 19:04:52 +0000 (12:04 -0700)
commit3adc52bcc8de8b33dc907dbde6a8c82fda056f93
tree55e44e4da15e9ed72261fdd6391abb2c4755876e
parente158420cacc687adbb028becd3750427f0f25873
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.
sys/dev/disk/dm/device-mapper.c
sys/dev/disk/dm/dm_target_stripe.c
sys/dev/disk/dm/dm_target_zero.c
sys/kern/vfs_bio.c
sys/sys/buf.h