From: Uday Shankar <ushankar@purestorage.com>
To: Ming Lei <ming.lei@redhat.com>, Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
Uday Shankar <ushankar@purestorage.com>,
Caleb Sander Mateos <csander@purestorage.com>
Subject: [PATCH 0/4] ublk: refactor __ublk_ch_uring_cmd
Date: Mon, 21 Apr 2025 17:46:39 -0600 [thread overview]
Message-ID: <20250421-ublk_constify-v1-0-3371f9e9f73c@purestorage.com> (raw)
Refactor __ublk_ch_uring_cmd to:
- Have one function per operation instead of handling operations
directly in the switch statement.
- Mark most ublk_queue pointers as const. Given efforts to allow
concurrent operations on one ublk_queue [1], it is important that
ublk_queue be read-only (or accesses to it be properly synchronized)
to avoid data races.
This series is split off from [1]. No functional changes are expected.
[1] https://lore.kernel.org/linux-block/20250416-ublk_task_per_io-v5-0-9261ad7bff20@purestorage.com/
Signed-off-by: Uday Shankar <ushankar@purestorage.com>
---
Uday Shankar (4):
ublk: factor out ublk_commit_and_fetch
ublk: mark ublk_queue as const for ublk_register_io_buf
ublk: factor out ublk_get_data
ublk: factor out error handling in __ublk_ch_uring_cmd
drivers/block/ublk_drv.c | 133 +++++++++++++++++++++++------------------------
1 file changed, 65 insertions(+), 68 deletions(-)
---
base-commit: edbaa72ba1bd21040df81f7c63851093264c7955
change-id: 20250421-ublk_constify-33ee1a6486ac
Best regards,
--
Uday Shankar <ushankar@purestorage.com>
next reply other threads:[~2025-04-21 23:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-21 23:46 Uday Shankar [this message]
2025-04-21 23:46 ` [PATCH 1/4] ublk: factor out ublk_commit_and_fetch Uday Shankar
2025-04-22 2:16 ` Ming Lei
2025-04-21 23:46 ` [PATCH 2/4] ublk: mark ublk_queue as const for ublk_register_io_buf Uday Shankar
2025-04-21 23:46 ` [PATCH 3/4] ublk: factor out ublk_get_data Uday Shankar
2025-04-22 2:17 ` Ming Lei
2025-04-21 23:46 ` [PATCH 4/4] ublk: factor out error handling in __ublk_ch_uring_cmd Uday Shankar
2025-04-22 2:17 ` Ming Lei
2025-04-24 21:50 ` [PATCH 0/4] ublk: refactor __ublk_ch_uring_cmd Uday Shankar
2025-04-25 2:40 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250421-ublk_constify-v1-0-3371f9e9f73c@purestorage.com \
--to=ushankar@purestorage.com \
--cc=axboe@kernel.dk \
--cc=csander@purestorage.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.lei@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®