Skip to contentSkip to conversation

ublk: move zone report data out of request pdu

PATCH Andreas Hindborg 1 participant 1 message Aug 14, 2024 Block layer

lore
Share & tools
lore

Andreas Hindborg

author Reviewed-by
#0 lore raw
Quoted 4 lines · Ming Lei

ublk zoned takes 16 bytes in each request pdu just for handling REPORT_ZONE operation, this way does waste memory since request pdu is allocated statically.

Quoted 8 lines

Store the transient zone report data into one global xarray, and remove it after the report zone request is completed. This way is reasonable since report zone is run in slow code path.

Cc Damien Le Moal <[email protected]>
Cc Andreas Hindborg <[email protected]>

---

Nice!

Best regards,
Andreas