Commit e0910c8
committed
dm raid: fix discard limits for raid1 and raid10
Block core warned that discard_granularity was 0 for dm-raid with
personality of raid1. Reason is that raid_io_hints() was incorrectly
special-casing raid1 rather than raid0.
But since commit 29efc39 ("md/md0: optimize raid0 discard
handling") even raid0 properly handles large discards.
Fix raid_io_hints() by removing discard limits settings for raid1.
Also, fix limits for raid10 by properly stacking underlying limits as
done in blk_stack_limits().
Depends-on: 29efc39 ("md/md0: optimize raid0 discard handling")
Fixes: 61697a6 ("dm: eliminate 'split_discard_bios' flag from DM target interface")
Cc: [email protected]
Reported-by: Zdenek Kabelac <[email protected]>
Reported-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>1 parent cd74693 commit e0910c8
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3730 | 3730 | | |
3731 | 3731 | | |
3732 | 3732 | | |
3733 | | - | |
3734 | | - | |
| 3733 | + | |
| 3734 | + | |
3735 | 3735 | | |
3736 | | - | |
3737 | | - | |
3738 | | - | |
| 3736 | + | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
| 3740 | + | |
3739 | 3741 | | |
3740 | 3742 | | |
3741 | 3743 | | |
| |||
0 commit comments