md/raid10: factor out common bio handling code
authorNamhyung Kim <namhyung@gmail.com>
Mon, 18 Jul 2011 07:38:47 +0000 (17:38 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 18 Jul 2011 07:38:47 +0000 (17:38 +1000)
commit778ca01852e6cc9ff335119b37a1938a978df384
tree845221188a1ffaafddac1041c8ced88ac9e6d8c2
parent2c4193df379bb89114ff60d4b0fa66131abe6a75
md/raid10: 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/raid10.c