Hello, The 1st patch checks max discard segment limit in request merge code, and one discard request failure issue is fixed for virtio_blk. The 2nd patch fixes handling of single max discard segment for virtio_blk, and potential memory corruption is fixed. Ming Lei (2): block: respect queue limit of max discard segment block: virtio_blk: fix handling single range discard request block/blk-merge.c | 10 ++++++++-- drivers/block/virtio_blk.c | 23 +++++++++++++++-------- 2 files changed, 23 insertions(+), 10 deletions(-) Cc: Christoph Hellwig <hch@xxxxxx> Cc: Christoph Hellwig <hch@xxxxxx> Cc: Changpeng Liu <changpeng.liu@xxxxxxxxx> Cc: Daniel Verkamp <dverkamp@xxxxxxxxxxxx> Cc: Michael S. Tsirkin <mst@xxxxxxxxxx> Cc: Stefan Hajnoczi <stefanha@xxxxxxxxxx> -- 2.25.2