All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix requests loss during virtio-blk device suspend
@ 2024-01-22 11:07 Yi Sun
  2024-01-22 11:07 ` [PATCH 1/2] blk-mq: introduce blk_mq_tagset_wait_request_completed() Yi Sun
  2024-01-22 11:07 ` [PATCH 2/2] virtio-blk: Ensure no requests in virtqueues before deleting vqs Yi Sun
  0 siblings, 2 replies; 11+ messages in thread
From: Yi Sun @ 2024-01-22 11:07 UTC (permalink / raw)
  To: axboe, mst, jasowang
  Cc: xuanzhuo, pbonzini, stefanha, virtualization, linux-block,
	linux-kernel, yi.sun, zhiguo.niu, hongyu.jin, sunyibuaa

When a virtio-blk device performs a large number of IO operations and
requires sleep at the same time, some requests may never be successfully
processed. 

It must be ensured that no requests in virtqueues before deleting.
The request becoming complete status means that the request has been removed
from the virtqueue.

Yi Sun (2):
  blk-mq: introduce blk_mq_tagset_wait_request_completed()
  virtio-blk: Ensure no requests in virtqueues before deleting vqs.

 block/blk-mq-tag.c         | 29 +++++++++++++++++++++++++++++
 drivers/block/virtio_blk.c |  6 ++++--
 include/linux/blk-mq.h     |  1 +
 3 files changed, 34 insertions(+), 2 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2024-01-24 17:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-22 11:07 [PATCH 0/2] Fix requests loss during virtio-blk device suspend Yi Sun
2024-01-22 11:07 ` [PATCH 1/2] blk-mq: introduce blk_mq_tagset_wait_request_completed() Yi Sun
2024-01-23 18:45   ` kernel test robot
2024-01-23 19:14   ` Keith Busch
2024-01-24 11:22     ` yi sun
2024-01-24 17:17       ` Keith Busch
2024-01-22 11:07 ` [PATCH 2/2] virtio-blk: Ensure no requests in virtqueues before deleting vqs Yi Sun
2024-01-22 15:42   ` Stefan Hajnoczi
2024-01-23  3:27     ` yi sun
2024-01-23 15:09       ` Stefan Hajnoczi
2024-01-24  7:38         ` yi sun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.