]> git.baikalelectronics.ru Git - kernel.git/commit
md: raid1/raid10: drop pending_cnt
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 17 Jan 2022 11:38:47 +0000 (12:38 +0100)
committerSong Liu <song@kernel.org>
Tue, 8 Mar 2022 23:16:54 +0000 (15:16 -0800)
commitbf1d15662f31fb7eb7660d2ad8944894cba6e11a
tree691c6675b45bf0feab4989a89a51e8abf5c18727
parent5e0d1ac3a4c8bf796035ff6390f142cc5b4d591e
md: raid1/raid10: drop pending_cnt

Those counters are not necessary after commit 11bb45e8aaf6 ("md: drop queue
limitation for RAID1 and RAID10"). Remove them from all code (conf and
plug structs). raid1_plug_cb and raid10_plug_cb are identical, so move
definition of raid1_plug_cb to common raid1-10 definitions and use it for
RAID10 too.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid1-10.c
drivers/md/raid1.c
drivers/md/raid1.h
drivers/md/raid10.c
drivers/md/raid10.h