[PATCH v3 0/2] Optimize r1conf->r1bio_pool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The r1conf->r1bio_pool field was previously a struct, 
which caused a bug after raid1_reshape.
These patch changes it to a pointer type 
and removes struct pool_info and related code.

Wang Jinchao (2):
  md/raid1: change r1conf->r1bio_pool to a pointer type
  md/raid1: remove struct pool_info and related code

 drivers/md/raid1.c | 84 +++++++++++++++++-----------------------------
 drivers/md/raid1.h | 22 +-----------
 2 files changed, 31 insertions(+), 75 deletions(-)
-- 
v1: Replace mempool_init() with mempool_create()
v2: Replace mempool_init() with mempool_create_kmalloc_pool()
v3: Fix checkpatch errors and a bug in calculating new_r1bio_size

The idea was proposed by Kuai, and I implemented it.
Thanks for the guidance and review.

-- 
2.43.0





[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux