Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-1693

filter_do_bio() and osd_do_bio() should set bi_rw before calling bio_add_page()

    XMLWordPrintable

Details

    • 3
    • 4469

    Description

      filter_do_bio() calls bio_add_page() without setting the direction of the bio. In bio_add_page() the direction is passed on to the merge_bvec_fn() if defined. raid5_mergeable_bvec() does check the direction and setting it correctly improves write bandwidth by allowing for full stripe writes.

      I assume that this is equally true of osd_do_bio().

      Attachments

        Activity

          People

            wc-triage WC Triage
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: