[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200504140611.GD29020@infradead.org>
Date: Mon, 4 May 2020 07:06:11 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Konstantin Khlebnikov <khlebnikov@...dex-team.ru>
Cc: linux-kernel@...r.kernel.org, linux-block@...r.kernel.org,
Jens Axboe <axboe@...nel.dk>
Subject: Re: [PATCH 4/4] block/part_stat: add helper
blk_account_io_merge_bio()
On Mon, May 04, 2020 at 04:31:04PM +0300, Konstantin Khlebnikov wrote:
> Move non-"new_io" branch of blk_account_io_start() into separate function.
> Fix merge accounting for discards (they were counted as write merges).
>
> Also blk_account_io_merge_bio() doesn't call update_io_ticks() unlike to
> blk_account_io_start(), there is no reason for that.
>
> Signed-off-by: Konstantin Khlebnikov <khlebnikov@...dex-team.ru>
Looks good,
Reviewed-by: Christoph Hellwig <hch@....de>
Nitpick below:
> +void blk_account_io_start(struct request *rq)
> {
> struct hd_struct *part;
> int rw = rq_data_dir(rq);
>
> + if (blk_do_io_stat(rq)) {
part and rw probably should move inside this branch.
Powered by blists - more mailing lists