On 6/1/21 9:19 AM, Guoqing Jiang wrote:
From: Guoqing Jiang <jgq516@xxxxxxxxx> We introduce a new bioset (io_acct_set) for raid0 and raid5 since they don't own clone infrastructure to accounting io. And the bioset is added to mddev instead of to raid0 and raid5 layer, because with this way, we can put common functions to md.h and reuse them in raid0 and raid5. Also struct md_io_acct is added accordingly which includes io start_time, the origin bio and cloned bio. Then we can call bio_{start,end}_io_acct to get related io status. Signed-off-by: Guoqing Jiang <jiangguoqing@xxxxxxxxxx> Signed-off-by: Song Liu <song@xxxxxxxxxx> --- Hi Song, Please consider apply the updated patch which has minor changes based on Christoph's comment. 1. don't create io_acct_set for raid1 and raid10. 2. update comment for md_account_bio.
Pls ignore this given it didn't check all the places before io_acct_set. Do you want an incremental patch against for-next branch or a fresh one to replace current patch in the tree? Thanks, Guoqing