summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2020-01-17 15:39:55 +0100
committerJens Axboe <axboe@kernel.dk>2020-01-29 21:13:18 -0700
commit0265d6e8ddb8901c2c03d09f9444f382a60ba6b1 (patch)
treea27d225fd5515133506325e6dd758ebce6ad07f8 /drivers/md
parent5c0dd228b5fc30a3b732c7ae2657e0161ec7ed80 (diff)
downloadlinux-0265d6e8ddb8901c2c03d09f9444f382a60ba6b1.tar.bz2
xen/blkfront: limit allocated memory size to actual use case
Today the Xen blkfront driver allocates memory for one struct blkfront_ring_info for each communication ring. This structure is statically sized for the maximum supported configuration resulting in a size of more than 90 kB. As the main size contributor is one array inside the struct, the memory allocation can easily be limited by moving this array to be the last structure element and to allocate only the memory for the actually needed array size. Acked-by: Roger Pau Monné <roger.pau@citrix.com> Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions