diff options
author | Ming Lei <[email protected]> | 2024-08-12 09:36:24 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-08-12 10:29:45 -0600 |
commit | 9327b51c9a9c864f5177127e09851da9d78b4943 (patch) | |
tree | c07ef83bfa0b4544eb33d2b952a97b9e59173f80 /lib/memory-notifier-error-inject.c | |
parent | f48ada402d2f1e46fa241bcc6725bdde70725e15 (diff) |
ublk: move zone report data out of request pdu
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.
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.
Fixes: 29802d7ca33b ("ublk: enable zoned storage support")
Cc: Damien Le Moal <[email protected]>
Cc: Andreas Hindborg <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions