ublk: move zone report data out of request pdu
Andreas Hindborg
Reviewed-byQuoted 4 lines · Ming Lei
ublk zoned takes 16 bytes in each request pdu just for handling
REPORT_ZONEoperation, 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]>Signed-off-by Ming Lei <[email protected]>---
Nice!
Reviewed-by Andreas Hindborg <[email protected]>
Best regards,
Andreas