[PATCH] nvme: Fix discard buffer overrun

jianchao.wang jianchao.w.wang at oracle.com
Thu Feb 1 17:50:32 PST 2018


Hi Jens

Thanks for your kindly response.

On 02/01/2018 11:27 PM, Jens Axboe wrote:
> On 2/1/18 7:55 AM, jianchao.wang wrote:
>> Hi Keith
>>
>> Since each discard bio merged into a request is counted as one segment,
>> why not let blk_rq_nr_discard_segments return numbers of bios directly.
> 
> That's a good idea, but for now this looks fine. Both this and the
> core block hole can be fixed, and then someone can hopefully work
> on making discards behave a bit more nicely after that.
> 
Yes, got it.

Thanks
Jianchao



More information about the Linux-nvme mailing list