]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid5: remove redundant bio initialisations.
authorNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:02 +0000 (14:27 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:02 +0000 (14:27 +1100)
commit99f7ec125422faa2155b1be969330a5b90511ce4
treec89e9b4f8f969f17449c60fa7a8d56fda6549669
parent63e4717bd34cd7759dfa66bfd3637f822116afc3
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