]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: remove redundant bio initialisations.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:52 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:52 +0000 (10:17 +1100)
commit6e4f754f05332fe2355052e9b75d507c03349a93
tree2bee4c8daf14b6453371bb348b18d37d7e3cdb07
parent2579965aeb792fe86f9c50c82ad777373776217a
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.

Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c