diff options
| author | Wang Jinchao <[email protected]> | 2025-07-07 01:26:57 +0000 |
|---|---|---|
| committer | Yu Kuai <[email protected]> | 2025-08-03 05:08:02 +0000 |
| commit | 987ca60637a46882a026ca9cc9f3e5f26e8aec28 (patch) | |
| tree | 055531c71666998409e3d658cbece529a4967f39 /drivers/fpga/microchip-spi.c | |
| parent | md: rename recovery_cp to resync_offset (diff) | |
| download | kernel-987ca60637a46882a026ca9cc9f3e5f26e8aec28.tar.gz kernel-987ca60637a46882a026ca9cc9f3e5f26e8aec28.zip | |
md/raid1: change r1conf->r1bio_pool to a pointer type
In raid1_reshape(), newpool is a stack variable.
mempool_init() initializes newpool->wait with the stack address.
After assigning newpool to conf->r1bio_pool, the wait queue
need to be reinitialized, which is not ideal.
Change raid1_conf->r1bio_pool to a pointer type and
replace mempool_init() with mempool_create_kmalloc_pool() to
avoid referencing a stack-based wait queue.
Signed-off-by: Wang Jinchao <[email protected]>
Link: https://lore.kernel.org/linux-raid/[email protected]
Signed-off-by: Yu Kuai <[email protected]>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions
