git: sys/dev/disk/dm: Add 2nd level bio_done handler for striped target

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Nov 6 07:08:00 PST 2015


commit 20f001c961dc227470db7ef792a56dec76443f66
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Wed Nov 4 22:03:05 2015 +0900

    sys/dev/disk/dm: Add 2nd level bio_done handler for striped target
    
    As mentioned in b48c316c, dm-striped target needs to have its
    own callback in order to make use of error counter. It could
    be done by either modifying netiobuf code or using stacked bio,
    but using stacked bio seems to be the right approach here as
    it doesn't modify the existing netiobuf bio code.
    
    This commit adds bio_done handler for nbio (the 2nd level bio
    after pushing the original bio), and make the handler increment
    num_error field of a stripe device if i/o error is detected.

Summary of changes:
 .../disk/dm/targets/striped/dm_target_striped.c    | 64 +++++++++++++++++-----
 1 file changed, 51 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/20f001c961dc227470db7ef792a56dec76443f66


-- 
DragonFly BSD source repository



More information about the Commits mailing list