md/raid1: split out two sub-functions from sync_request_write

sync_request_write is too big and too deep.
So split out two self-contains bits of functionality into separate
function.

Signed-off-by: NeilBrown <neilb@suse.de>
1 file changed