git: hammer2 - Use B_IOISSUED

Matthew Dillon dillon at
Sat Jun 11 15:15:55 PDT 2016

commit 8b892544aeb93651eb58cc6af6560bfd4e276a3f
Author: Matthew Dillon <dillon at>
Date:   Sat Jun 11 15:12:51 2016 -0700

    hammer2 - Use B_IOISSUED
    * Get rid of the hokey B_IODEBUG use case H2 had before.
    * Integrate B_IOISSUED (which used to be B_IODEBUG) into hammer2 properly.
    * Remove the dio crc_good_mask hack.  Now that hammer2_chain is more
      persistent we just use the flag in the cached hammer2_chain structure,
      clearing it if we determine that the kernel had to re-issue read I/O
      (at least in the full-block case).
    * Has approximately the same performance as the dio crc_good_mask hack had
      and is a bit safer w/regards to chain aliasing to the same physical block.

Summary of changes:
 sys/vfs/hammer2/hammer2.h          |  1 -
 sys/vfs/hammer2/hammer2_chain.c    | 36 +++++++++++++++++++++++++-----------
 sys/vfs/hammer2/hammer2_io.c       |  5 ++++-
 sys/vfs/hammer2/hammer2_strategy.c | 25 +++++++++++++++++++++++--
 4 files changed, 52 insertions(+), 15 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list