1. 18 Jul, 2016 8 commits
  2. 16 Jun, 2016 1 commit
  3. 14 Jun, 2016 19 commits
  4. 13 Jun, 2016 6 commits
  5. 07 Jun, 2016 1 commit
  6. 13 May, 2016 1 commit
  7. 02 Oct, 2015 1 commit
    • Mikulas Patocka's avatar
      dm raid: fix round up of default region size · 042745ee
      Mikulas Patocka authored
      Commit 3a0f9aae
       ("dm raid: round region_size to power of two")
      intended to make sure that the default region size is a power of two.
      However, the logic in that commit is incorrect and sets the variable
      region_size to 0 or 1, depending on whether min_region_size is a power
      of two.
      Fix this logic, using roundup_pow_of_two(), so that region_size is
      properly rounded up to the next power of two.
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Fixes: 3a0f9aae
       ("dm raid: round region_size to power of two")
      Cc: stable@vger.kernel.org # v3.8+
      Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
  8. 13 Aug, 2015 1 commit
    • Kent Overstreet's avatar
      block: kill merge_bvec_fn() completely · 8ae12666
      Kent Overstreet authored
      As generic_make_request() is now able to handle arbitrarily sized bios,
      it's no longer necessary for each individual block driver to define its
      own ->merge_bvec_fn() callback. Remove every invocation completely.
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Lars Ellenberg <drbd-dev@lists.linbit.com>
      Cc: drbd-user@lists.linbit.com
      Cc: Jiri Kosina <jkosina@suse.cz>
      Cc: Yehuda Sadeh <yehuda@inktank.com>
      Cc: Sage Weil <sage@inktank.com>
      Cc: Alex Elder <elder@kernel.org>
      Cc: ceph-devel@vger.kernel.org
      Cc: Alasdair Kergon <agk@redhat.com>
      Cc: Mike Snitzer <snitzer@redhat.com>
      Cc: dm-devel@redhat.com
      Cc: Neil Brown <neilb@suse.de>
      Cc: linux-raid@vger.kernel.org
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Acked-by: NeilBrown <neilb@suse.de> (for the 'md' bits)
      Acked-by: default avatarMike Snitzer <snitzer@redhat.com>
      Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
      [dpark: also remove ->merge_bvec_fn() in dm-thin as well as
       dm-era-target, and resolve merge conflicts]
      Signed-off-by: default avatarDongsu Park <dpark@posteo.net>
      Signed-off-by: default avatarMing Lin <ming.l@ssi.samsung.com>
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
  9. 29 May, 2015 2 commits
    • Heinz Mauelshagen's avatar
      dm raid: add support for the MD RAID0 personality · 0cf45031
      Heinz Mauelshagen authored
      Add dm-raid access to the MD RAID0 personality to enable single zone
      The following changes enable that access:
      - add type definition to raid_types array
      - make bitmap creation conditonal in super_validate(), because
        bitmaps are not allowed in raid0
      - set rdev->sectors to the data image size in super_validate()
        to allow the raid0 personality to calculate the MD array
        size properly
      - use mdddev(un)lock() functions instead of direct mutex_(un)lock()
        (wrapped in here because it's a trivial change)
      - enhance raid_status() to always report full sync for raid0
        so that userspace checks for 100% sync will succeed and allow
        for resize (and takeover/reshape once added in future paches)
      - enhance raid_resume() to not load bitmap in case of raid0
      - add merge function to avoid data corruption (seen with readahead)
        that resulted from bio payloads that grew too large.  This problem
        did not occur with the other raid levels because it either did not
        apply without striping (raid1) or was avoided via stripe caching.
      - raise version to 1.7.0 because of the raid0 API change
      Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
      Reviewed-by: default avatarJonathan Brassow <jbrassow@redhat.com>
      Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
    • Heinz Mauelshagen's avatar
      dm raid: a few cleanups · c76d53f4
      Heinz Mauelshagen authored
      - ensure maximum device limit in superblock
      - rename DMPF_* (print flags) to CTR_FLAG_* (constructor flags)
        and their respective struct raid_set member
      - use strcasecmp() in raid10_format_to_md_layout() as in the constructor
      Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
      Reviewed-by: default avatarJonathan Brassow <jbrassow@redhat.com>
      Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>