Skip to content
  • Kiyoshi Ueda's avatar
    dm request: extend target interface · 7d76345d
    Kiyoshi Ueda authored
    
    
    This patch adds the following target interfaces for request-based dm.
    
      map_rq    : for mapping a request
    
      rq_end_io : for finishing a request
    
      busy      : for avoiding performance regression from bio-based dm.
                  Target can tell dm core not to map requests now, and
                  that may help requests in the block layer queue to be
                  bigger by I/O merging.
                  In bio-based dm, this behavior is done by device
                  drivers managing the block layer queue.
                  But in request-based dm, dm core has to do that
                  since dm core manages the block layer queue.
    
    Signed-off-by: default avatarKiyoshi Ueda <k-ueda@ct.jp.nec.com>
    Signed-off-by: default avatarJun'ichi Nomura <j-nomura@ce.jp.nec.com>
    Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
    7d76345d