]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid5: remove redundant bio initialisations.
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:06 +0000 (11:32 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:06 +0000 (11:32 +1100)
commit31bfd9414193e6e1ea5bdac0f7f168ffd3847658
tree8f2cae125887e13554cc93783f3d7e153799cd42
parent28fc9a15966221a6194d43e5ff30c49fc23fca75
md/raid5: remove redundant bio initialisations.

We current initialise some fields of a bio when preparing a
stripe_head, and again just before submitting the request.

Remove the duplication by only setting the fields that lower level
devices don't touch in raid5_build_block, and only set the changeable
fields in ops_run_io.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c