1. 19 7月, 2016 9 次提交
  2. 17 6月, 2016 1 次提交
  3. 15 6月, 2016 19 次提交
  4. 14 6月, 2016 6 次提交
  5. 08 6月, 2016 1 次提交
  6. 13 5月, 2016 1 次提交
  7. 03 10月, 2015 1 次提交
    • M
      dm raid: fix round up of default region size · 042745ee
      Mikulas Patocka 提交于
      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: NMikulas 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: NMike Snitzer <snitzer@redhat.com>
      042745ee
  8. 14 8月, 2015 1 次提交
    • K
      block: kill merge_bvec_fn() completely · 8ae12666
      Kent Overstreet 提交于
      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: NMike Snitzer <snitzer@redhat.com>
      Signed-off-by: NKent 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: NDongsu Park <dpark@posteo.net>
      Signed-off-by: NMing Lin <ming.l@ssi.samsung.com>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      8ae12666
  9. 30 5月, 2015 1 次提交
    • H
      dm raid: add support for the MD RAID0 personality · 0cf45031
      Heinz Mauelshagen 提交于
      Add dm-raid access to the MD RAID0 personality to enable single zone
      striping.
      
      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: NHeinz Mauelshagen <heinzm@redhat.com>
      Reviewed-by: NJonathan Brassow <jbrassow@redhat.com>
      Signed-off-by: NMike Snitzer <snitzer@redhat.com>
      0cf45031