mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
ublk: add union ublk_io_buf with improved naming
[ Upstream commit8d61ece156] Add `union ublk_io_buf` for naming the anonymous union of struct ublk_io's addr and buf fields, meantime apply it to `struct ublk_io` for storing either ublk auto buffer register data or ublk server io buffer address. The union uses clear field names: - `addr`: for regular ublk server io buffer addresses - `auto_reg`: for ublk auto buffer registration data This eliminates confusing access patterns and improves code readability. Reviewed-by: Caleb Sander Mateos <csander@purestorage.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Stable-dep-of:c258f5c450("ublk: fix deadlock when reading partition table") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
0f6f3cf11b
commit
5907d42340
1 changed files with 22 additions and 18 deletions
Loading…
Add table
Add a link
Reference in a new issue