]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ublk: consolidate UBLK_IO_FLAG_OWNED_BY_SRV checks
authorCaleb Sander Mateos <csander@purestorage.com>
Mon, 5 May 2025 17:26:23 +0000 (11:26 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 May 2025 13:40:18 +0000 (07:40 -0600)
commite96ee7e1deaa74c5cc80ab03b51943ece5809984
tree8233e0ad50a68a0e95bc2c8d3e5eb4ebc13fba0b
parent18b8144a1bd8be5a88cc438c0c9213bae1be1a9d
ublk: consolidate UBLK_IO_FLAG_OWNED_BY_SRV checks

Every ublk I/O command except UBLK_IO_FETCH_REQ checks that the ublk_io
has UBLK_IO_FLAG_OWNED_BY_SRV set. Consolidate the separate checks into
a single one in __ublk_ch_uring_cmd(), analogous to those for
UBLK_IO_FLAG_ACTIVE and UBLK_IO_FLAG_NEED_GET_DATA.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250505172624.1121839-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c