]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm raid: don't allow "write behind" with raid4/5/6
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 24 Nov 2016 17:53:44 +0000 (18:53 +0100)
committerMike Snitzer <snitzer@redhat.com>
Thu, 8 Dec 2016 19:13:11 +0000 (14:13 -0500)
commitaffa9d28f7e9a802c8f497ed54fe79a5689d95e9
treecebf2ead1388719608217faddd9fa5543e1b72b1
parent54cd640d20de46bb54747286ca19f3995be921f2
dm raid: don't allow "write behind" with raid4/5/6

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: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c