md/raid1: factor out common bio handling code
authorNamhyung Kim <namhyung@gmail.com>
Fri, 7 Oct 2011 03:22:53 +0000 (14:22 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 7 Oct 2011 03:22:53 +0000 (14:22 +1100)
commitba3ae3bee317f0a5db813c026c8a8c113a4e40fb
tree30a8c9d55afc32156973a3b1efb1cec94f4411d4
parente4f869d9de18bc8272df8d0ab764178aa24bdf33
md/raid1: factor out common bio handling code

When normal-write and sync-read/write bio completes, we should
find out the disk number the bio belongs to. Factor those common
code out to a separate function.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c