]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: only read from sqe on initial invocation of blkdev_uring_cmd()
authorJens Axboe <axboe@kernel.dk>
Mon, 4 May 2026 14:34:32 +0000 (08:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 5 May 2026 07:37:12 +0000 (01:37 -0600)
commit212ec34e4e726e8cd4af7bea4740db24de8a9dab
tree46c8c1d94b85d2059163699dd27277c816d3f747
parent845db023a8aeba8b14315a846dcfba31ee727fb1
block: only read from sqe on initial invocation of blkdev_uring_cmd()

This passthrough helper currently only supports discards. Part of that
command is the start and length, which is read from the SQE. It does
so on every invocation, where it really should just make it stable
on the first invocation. This avoids needing to copy the SQE upfront,
as we only really need those two 8b values stored in our per-req
payload.

Cc: stable@vger.kernel.org # 6.17+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/ioctl.c