[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181028154835.GA3061@lst.de>
Date: Sun, 28 Oct 2018 16:48:35 +0100
From: Christoph Hellwig <hch@....de>
To: Jianchao Wang <jianchao.w.wang@...cle.com>
Cc: axboe@...nel.dk, martin.petersen@...cle.com, tom.leiming@...il.com,
hch@....de, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH V5] block: fix the DISCARD request merge
On Sat, Oct 27, 2018 at 07:52:14PM +0800, Jianchao Wang wrote:
> +enum elv_merge blk_try_req_merge(struct request *req, struct request *next)
> +{
> + if (blk_discard_mergable(req))
> + return ELEVATOR_DISCARD_MERGE;
> + else if (blk_rq_pos(req) + blk_rq_sectors(req) == blk_rq_pos(next))
> + return ELEVATOR_BACK_MERGE;
> +
> + return ELEVATOR_NO_MERGE;
The empty line here look a little odd, but if that is the only thing
I can nitpick about it must be great, so:
Reviewed-by: Christoph Hellwig <hch@....de>
Powered by blists - more mailing lists