Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377043
b: refs/heads/master
c: 5026d7a
h: refs/heads/master
i:
  377041: 7abb162
  377039: 9f2bc60
v: v3
  • Loading branch information
H. Peter Anvin authored and NeilBrown committed Jun 13, 2013
1 parent 616354a commit 3ead82b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e2d59925221cd562e07fee38ec8839f7209ae603
refs/heads/master: 5026d7a9b2f3eb1f9bda66c18ac6bc3036ec9020
4 changes: 2 additions & 2 deletions trunk/drivers/md/raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2837,8 +2837,8 @@ static int run(struct mddev *mddev)
return PTR_ERR(conf);

if (mddev->queue)
blk_queue_max_write_same_sectors(mddev->queue,
mddev->chunk_sectors);
blk_queue_max_write_same_sectors(mddev->queue, 0);

rdev_for_each(rdev, mddev) {
if (!mddev->gendisk)
continue;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/md/raid10.c
Original file line number Diff line number Diff line change
Expand Up @@ -3651,8 +3651,7 @@ static int run(struct mddev *mddev)
if (mddev->queue) {
blk_queue_max_discard_sectors(mddev->queue,
mddev->chunk_sectors);
blk_queue_max_write_same_sectors(mddev->queue,
mddev->chunk_sectors);
blk_queue_max_write_same_sectors(mddev->queue, 0);
blk_queue_io_min(mddev->queue, chunk_size);
if (conf->geo.raid_disks % conf->geo.near_copies)
blk_queue_io_opt(mddev->queue, chunk_size * conf->geo.raid_disks);
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -5465,7 +5465,7 @@ static int run(struct mddev *mddev)
if (mddev->major_version == 0 &&
mddev->minor_version > 90)
rdev->recovery_offset = reshape_offset;

if (rdev->recovery_offset < reshape_offset) {
/* We need to check old and new layout */
if (!only_parity(rdev->raid_disk,
Expand Down Expand Up @@ -5588,6 +5588,8 @@ static int run(struct mddev *mddev)
*/
mddev->queue->limits.discard_zeroes_data = 0;

blk_queue_max_write_same_sectors(mddev->queue, 0);

rdev_for_each(rdev, mddev) {
disk_stack_limits(mddev->gendisk, rdev->bdev,
rdev->data_offset << 9);
Expand Down

0 comments on commit 3ead82b

Please sign in to comment.