On Wed, Mar 11, 2020 at 02:07:47AM -0700, Omar Sandoval wrote: > That works for me. I was microoptimizing here since I can stop iterating > once I know that the bio is greater than one sector, but since this is > for the rare repair case, it really doesn't matter. > > On the other hand, a bio_for_each_bvec_all() helper would feel less > intrusive into the bio guts and also support bailing early. I'm fine > either way. Thoughts? I don't really care too much as long as we don't open code the bi_io_vec access.
