From: Yu Kuai <yukuai3@xxxxxxxxxx>
Changes from v3:
- fix redundant setting mddev->bitmap_id in patch 6;
- add explanation of bitmap attributes in Documentation;
- add llbitmap/barrier_idle in patch 11;
- add some comments in patch 11;
Yu Kuai (11):
md: add a new parameter 'offset' to md_super_write()
md: factor out a helper raid_is_456()
md/md-bitmap: support discard for bitmap ops
md: add a new mddev field 'bitmap_id'
md/md-bitmap: add a new sysfs api bitmap_type
md/md-bitmap: delay registration of bitmap_ops until creating bitmap
md/md-bitmap: add a new method skip_sync_blocks() in bitmap_operations
md/md-bitmap: add a new method blocks_synced() in bitmap_operations
md: add a new recovery_flag MD_RECOVERY_LAZY_RECOVER
md/md-bitmap: make method bitmap_ops->daemon_work optional
md/md-llbitmap: introduce new lockless bitmap
Documentation/admin-guide/md.rst | 86 +-
drivers/md/Kconfig | 11 +
drivers/md/Makefile | 1 +
drivers/md/md-bitmap.c | 15 +-
drivers/md/md-bitmap.h | 45 +-
drivers/md/md-llbitmap.c | 1598 ++++++++++++++++++++++++++++++
drivers/md/md.c | 288 ++++--
drivers/md/md.h | 20 +-
drivers/md/raid5.c | 6 +
9 files changed, 1963 insertions(+), 107 deletions(-)
create mode 100644 drivers/md/md-llbitmap.c