1. 10 Mar, 2022 3 commits
    • Mike Snitzer's avatar
      dm: simplify dm_sumbit_bio_remap interface · b7f8dff0
      Mike Snitzer authored
      Remove the from_wq argument from dm_sumbit_bio_remap(). Eliminates the
      need for dm_sumbit_bio_remap() callers to know whether they are
      calling for a workqueue or from the original dm_submit_bio().
      
      Add map_task to dm_io struct, record the map_task in alloc_io and
      clear it after all target ->map() calls have completed. Update
      dm_sumbit_bio_remap to check if 'current' matches io->map_task rather
      than rely on passed 'from_rq' argument.
      
      This change really simplifies the chore of porting each DM target to
      using dm_sumbit_bio_remap() because there is no longer the risk of
      programming error by not completely knowing all the different contexts
      a particular method that calls dm_sumbit_bio_remap() might be used in.
      Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
      b7f8dff0
    • Mike Snitzer's avatar
      dm thin: use dm_submit_bio_remap · a9251281
      Mike Snitzer authored
      Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
      a9251281
    • Mike Snitzer's avatar
      dm: add WARN_ON_ONCE to dm_submit_bio_remap · 0a8e9599
      Mike Snitzer authored
      If a target uses dm_submit_bio_remap() it should set
      ti->accounts_remapped_io.
      
      Also, switch dm_start_io_acct() WARN_ON to WARN_ON_ONCE.
      Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
      0a8e9599
  2. 09 Mar, 2022 2 commits
  3. 02 Mar, 2022 3 commits
  4. 22 Feb, 2022 11 commits
  5. 21 Feb, 2022 19 commits
  6. 17 Feb, 2022 2 commits