linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] ublk: decouple server threads from hctxs
@ 2025-04-11  0:17 Uday Shankar
  2025-04-11  0:17 ` [PATCH v3 1/2] ublk: properly serialize all FETCH_REQs Uday Shankar
  2025-04-11  0:17 ` [PATCH v3 2/2] ublk: require unique task per io instead of unique task per hctx Uday Shankar
  0 siblings, 2 replies; 8+ messages in thread
From: Uday Shankar @ 2025-04-11  0:17 UTC (permalink / raw)
  To: Ming Lei, Jens Axboe
  Cc: linux-block, linux-kernel, Uday Shankar, Caleb Sander Mateos

This patch set aims to allow ublk server threads to better balance load
amongst themselves by decoupling server threads from ublk queues/hctxs,
so that multiple threads can service I/Os from a single hctx.

Signed-off-by: Uday Shankar <ushankar@purestorage.com>
---
Changes in v3:
- Check for UBLK_IO_FLAG_ACTIVE on I/O again after taking lock to ensure
  that two concurrent FETCH_REQs on the same I/O can't succeed (Caleb
  Sander Mateos)
- Link to v2: https://lore.kernel.org/r/20250408-ublk_task_per_io-v2-0-b97877e6fd50@purestorage.com

Changes in v2:
- Remove changes split into other patches
- To ease error handling/synchronization, associate each I/O (instead of
  each queue) to the last task that issues a FETCH_REQ against it. Only
  that task is allowed to operate on the I/O.
- Link to v1: https://lore.kernel.org/r/20241002224437.3088981-1-ushankar@purestorage.com

---
Uday Shankar (2):
      ublk: properly serialize all FETCH_REQs
      ublk: require unique task per io instead of unique task per hctx

 drivers/block/ublk_drv.c | 99 +++++++++++++++++++++++++-----------------------
 1 file changed, 51 insertions(+), 48 deletions(-)
---
base-commit: 88e581728f3f0036110126adbaa0d88d3cd3b48d
change-id: 20250408-ublk_task_per_io-c693cf608d7a

Best regards,
-- 
Uday Shankar <ushankar@purestorage.com>


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

end of thread, other threads:[~2025-04-17  1:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-11  0:17 [PATCH v3 0/2] ublk: decouple server threads from hctxs Uday Shankar
2025-04-11  0:17 ` [PATCH v3 1/2] ublk: properly serialize all FETCH_REQs Uday Shankar
2025-04-11  8:29   ` Ming Lei
2025-04-11 16:00   ` Caleb Sander Mateos
2025-04-11  0:17 ` [PATCH v3 2/2] ublk: require unique task per io instead of unique task per hctx Uday Shankar
2025-04-11  8:53   ` Ming Lei
2025-04-16  0:12     ` Uday Shankar
2025-04-17  1:29       ` Ming Lei

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).