[PATCH] nvme: Fix discard buffer overrun
Jens Axboe
axboe at kernel.dk
Thu Feb 1 07:27:33 PST 2018
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.
--
Jens Axboe
More information about the Linux-nvme
mailing list