14.01.2014 09:40, majianpeng wrote: > For non-fullstripe-write, raid456 need read some old data no matter how > rcw or rmw. We use compensation to recored the value about the > additional read-data.The unit of compenstaion is PAGE_SIZE. > Using the formula compensation*PAGE_SIZE/write_count_for_md, we can know > the efficiency.Using this we can tune the write mode to get the best > efficiency. Just a very small nitpick: > --- a/drivers/md/raid5.h > +++ b/drivers/md/raid5.h > @@ -494,6 +494,11 @@ struct r5conf { > struct r5worker_group *worker_groups; > int group_cnt; > int worker_cnt_per_group; > + > + /*For non-fullstripe-write, it need read some data Missing space in the comment ;) /mjt -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html