]> www.infradead.org Git - users/hch/block.git/commit
ublk: move zone report data out of request pdu
authorMing Lei <ming.lei@redhat.com>
Mon, 12 Aug 2024 01:36:24 +0000 (09:36 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Aug 2024 16:29:45 +0000 (10:29 -0600)
commit9327b51c9a9c864f5177127e09851da9d78b4943
treec07ef83bfa0b4544eb33d2b952a97b9e59173f80
parentf48ada402d2f1e46fa241bcc6725bdde70725e15
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 <dlemoal@kernel.org>
Cc: Andreas Hindborg <a.hindborg@samsung.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20240812013624.587587-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c