]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ublk: remove ublk_commit_and_fetch()
authorMing Lei <ming.lei@redhat.com>
Sun, 13 Jul 2025 14:34:04 +0000 (22:34 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jul 2025 14:04:16 +0000 (08:04 -0600)
commitb749965edda8fcf0fd3e188c56845e991eaa63c9
treeb18dc5bc84caa375c574cfe12ea246e69d726819
parent3446583f81fc3b98dddaac15b37d9c4ff2b569af
ublk: remove ublk_commit_and_fetch()

Remove ublk_commit_and_fetch() and open code request completion.

Consolidate accesses to struct ublk_io in UBLK_IO_COMMIT_AND_FETCH_REQ. When
the ublk_io daemon task restriction is relaxed in the future, ublk_io will
need to be protected by a lock. Unregister the auto-registered buffer and
complete the request last, as these don't need to happen under the lock.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250713143415.2857561-10-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c