linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] block: fix discard merge for single max discard segment
@ 2020-08-11  9:21 Ming Lei
  2020-08-11  9:21 ` [PATCH 1/2] block: respect queue limit of " Ming Lei
  2020-08-11  9:21 ` [PATCH 2/2] block: virtio_blk: fix handling single range discard request Ming Lei
  0 siblings, 2 replies; 8+ messages in thread
From: Ming Lei @ 2020-08-11  9:21 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-block, Ming Lei, Christoph Hellwig, Changpeng Liu,
	Daniel Verkamp, Michael S . Tsirkin, Stefan Hajnoczi

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@lst.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Changpeng Liu <changpeng.liu@intel.com>
Cc: Daniel Verkamp <dverkamp@chromium.org>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>

-- 
2.25.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-08-11 14:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11  9:21 [PATCH 0/2] block: fix discard merge for single max discard segment Ming Lei
2020-08-11  9:21 ` [PATCH 1/2] block: respect queue limit of " Ming Lei
2020-08-11  9:21 ` [PATCH 2/2] block: virtio_blk: fix handling single range discard request Ming Lei
2020-08-11 12:30   ` Stefano Garzarella
2020-08-11 13:09     ` Ming Lei
2020-08-11 13:39       ` Stefano Garzarella
2020-08-11 13:43         ` Ming Lei
2020-08-11 14:16           ` Stefano Garzarella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).