public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] loop: improve loop aio perf by IOCB_NOWAIT
@ 2025-03-08 16:14 Ming Lei
  2025-03-08 16:14 ` [PATCH 1/2] block: loop: share code of reread partitions Ming Lei
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Ming Lei @ 2025-03-08 16:14 UTC (permalink / raw)
  To: Jens Axboe, linux-block; +Cc: Ming Lei

Hello Jens,

This patchset improves loop aio perf by using IOCB_NOWAIT for avoiding to queue aio
command to workqueue context, meantime refactor lo_rw_aio() a bit.

The last patch adds MQ support, which improves perf a bit in case of multiple
IO jobs.

In my test VM, loop disk perf becomes very close to perf of the backing block
device(nvme/mq virtio-scsi).

Thanks,
Ming


Ming Lei (5):
  loop: remove 'rw' parameter from lo_rw_aio()
  loop: cleanup lo_rw_aio()
  loop: add helper loop_queue_work_prep
  loop: try to handle loop aio command via NOWAIT IO first
  loop: add module parameter of 'nr_hw_queues'

 drivers/block/loop.c | 225 ++++++++++++++++++++++++++++++-------------
 1 file changed, 156 insertions(+), 69 deletions(-)

-- 
2.47.0


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH 0/2] block: loop: delete partitions after clearing & changing fd
@ 2020-07-07  8:45 Ming Lei
  2020-07-07  8:45 ` [PATCH 1/2] block: loop: share code of reread partitions Ming Lei
  0 siblings, 1 reply; 13+ messages in thread
From: Ming Lei @ 2020-07-07  8:45 UTC (permalink / raw)
  To: Jens Axboe, Christoph Hellwig; +Cc: linux-block, Ming Lei

Hi,

The 1st patch cleans up __loop_clr_fd a bit.

The 2nd patch fixes one issue which may make ghost partitions even
though after fd is cleared or changed.


Ming Lei (2):
  block: loop: share code of reread partitions
  block: loop: delete partitions after clearing & changing fd

 drivers/block/loop.c | 36 ++++++++++++++++++++----------------
 1 file changed, 20 insertions(+), 16 deletions(-)

-- 
2.25.2


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

end of thread, other threads:[~2025-03-08 16:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-08 16:14 [PATCH 0/5] loop: improve loop aio perf by IOCB_NOWAIT Ming Lei
2025-03-08 16:14 ` [PATCH 1/2] block: loop: share code of reread partitions Ming Lei
2025-03-08 16:17   ` Ming Lei
2025-03-08 16:14 ` [PATCH] loop: fallback to buffered IO in case of dio submission failure Ming Lei
2025-03-08 16:14 ` [PATCH 1/5] loop: remove 'rw' parameter from lo_rw_aio() Ming Lei
2025-03-08 16:14 ` [PATCH 2/2] block: loop: delete partitions after clearing & changing fd Ming Lei
2025-03-08 16:14 ` [PATCH 2/5] loop: cleanup lo_rw_aio() Ming Lei
2025-03-08 16:14 ` [PATCH 3/5] loop: add helper loop_queue_work_prep Ming Lei
2025-03-08 16:14 ` [PATCH 4/5] loop: try to handle loop aio command via NOWAIT IO first Ming Lei
2025-03-08 16:14 ` [PATCH 5/5] loop: add module parameter of 'nr_hw_queues' Ming Lei
2025-03-08 16:20 ` [PATCH 0/5] loop: improve loop aio perf by IOCB_NOWAIT Ming Lei
  -- strict thread matches above, loose matches on Subject: below --
2020-07-07  8:45 [PATCH 0/2] block: loop: delete partitions after clearing & changing fd Ming Lei
2020-07-07  8:45 ` [PATCH 1/2] block: loop: share code of reread partitions Ming Lei
2020-07-07 17:49   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox