Thread (20 messages) flat view 20 messages, 3 authors, 2021-06-03

Re: [Update PATCH V3 2/8] md: add io accounting for raid0 and raid5

From: Song Liu <song@kernel.org>
Date: 2021-06-03 06:54:54

On Wed, Jun 2, 2021 at 6:17 PM Guoqing Jiang [off-list ref] wrote:


On 6/1/21 9:19 AM, Guoqing Jiang wrote:
quoted
From: Guoqing Jiang <redacted>

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 <redacted>
Signed-off-by: Song Liu <song@kernel.org>
---
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?
Hi Guoqing,

Thanks for the hard work on this. Please send a fix patch on top of current
md-next.

Song
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help