]> git.baikalelectronics.ru Git - kernel.git/commit
raid5-cache: statically allocate the recovery ra bio
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Feb 2022 11:25:02 +0000 (13:25 +0200)
committerSong Liu <song@kernel.org>
Wed, 9 Mar 2022 06:55:09 +0000 (22:55 -0800)
commit2e36d758ce8cc7e889102c57348d757efdc5644e
treebddffec274b94ed4ca22b269a56fecd7be7923e3
parentb8dd9604d2d4a8ddb2d451273d3fb06d18b79561
raid5-cache: statically allocate the recovery ra bio

There is no need to preallocate the bio and reset it when use.  Just
allocate it on-stack and use a bvec places next to the pages used for
it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid5-cache.c