From: Yu Kuai <yukuai3@xxxxxxxxxx> Changes in v3: - rework patch 1, because the condition is confusing Changes in v2: - don't hold lock while show mddev in md_seq_show - add patch 1 - add commit message Yu Kuai (2): md: factor out a helper from mddev_put() md: simplify md_seq_ops drivers/md/md.c | 129 +++++++++++++++--------------------------------- 1 file changed, 39 insertions(+), 90 deletions(-) -- 2.39.2