• Heinz Mauelshagen's avatar
    dm raid: don't allow "write behind" with raid4/5/6 · affa9d28
    Heinz Mauelshagen authored
    Remove CTR_FLAG_MAX_WRITE_BEHIND from raid4/5/6's valid ctr flags.
    
    Only the md raid1 personality supports setting a maximum number
    of "write behind" write IOs on any legs set to "write mostly".
    "write mostly" enhances throughput with slow links/disks.
    
    Technically the "write behind" value is a write intent bitmap
    property only being respected by the raid1 personality.  It allows a
    maximum number of "write behind" writes to any "write mostly" raid1
    mirror legs to be delayed and avoids reads from such legs.
    
    No other MD personalities supported via dm-raid make use of "write
    behind", thus setting this property is superfluous; it wouldn't cause
    harm but it is correct to reject it.
    Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
    Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
    affa9d28
dm-raid.c 105 KB