md raid1: allow writebehind to work on any leg device set WriteMostly
authorHeinz Mauelshagen <heinzm@redhat.com>
Mon, 14 Aug 2023 12:01:15 +0000 (14:01 +0200)
committerSong Liu <song@kernel.org>
Fri, 18 Aug 2023 04:11:31 +0000 (21:11 -0700)
commit6b2460e66ce6d483b5ff77227ac799d6e8a9ebd6
tree1cfbe76638d20bcfa000d6303c6faab9c13db7f8
parentc069da449a13669ffa754fd971747e7e17e7d691
md raid1: allow writebehind to work on any leg device set WriteMostly

As the WriteMostly flag can be set on any component device of a RAID1
array, remove the constraint that it only works if set on the first one.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Tested-by: Xiao Ni <xni@redhat.com>
Link: https://lore.kernel.org/r/2a9592bf3340f34bf588eec984b23ee219f3985e.1692013451.git.heinzm@redhat.com
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid1.c