Re: [PATCH V2] block: fix the DISCARD request merge

From: jianchao.wang
Date: Mon Oct 22 2018 - 06:14:36 EST




On 10/22/18 5:08 PM, Christoph Hellwig wrote:
> On Mon, Oct 22, 2018 at 05:06:02PM +0800, Ming Lei wrote:
>>
>> The above may be changed to 'if (blk_try_merge(req) == ELEVATOR_DISCARD_MERGE)'
>> or sort of in future, which may has document benefit at least, since
>> ELEVATOR_DISCARD_MERGE means multi-segment discard merge.
>
> I like that idea, and we should do it for the respin
>

OK, I will use the blk_try_merge in next version.

Thanks
Jianchao