Skip to content

Optimize r1conf->r1bio_pool

Wang Jinchao linux-raid lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 0 repliesNew
  2. v32 patches 3 repliesSuperseded
  3. v22 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch7 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2md/raid1: change r1conf->r1bio_pool to a pointer typedrivers/md/raid1.c drivers/md/raid1.h+17 -220 replies
2/2md/raid1: remove struct pool_info and related codedrivers/md/raid1.c drivers/md/raid1.h+14 -550 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/2] Optimize r1conf->r1bio_pool

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 | 82 ++++++++++++++++------------------------------
 drivers/md/raid1.h | 22 +------------
 2 files changed, 29 insertions(+), 75 deletions(-)
Signature · 6 lines
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
v4: Remove unnecessary local variable used only once
-- 
2.43.0