OSDN Git Service

md: drop queue limitation for RAID1 and RAID10
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Fri, 17 Dec 2021 09:29:55 +0000 (10:29 +0100)
committerSong Liu <song@kernel.org>
Thu, 6 Jan 2022 16:37:02 +0000 (08:37 -0800)
commita92ce0feffeed8b91f02dac85246d1205e4a64b6
tree6d046d93295db91b35d8cc470cb2a4f0103549ec
parent770b1d216d7371c94c88713824da4be4bc39a4e0
md: drop queue limitation for RAID1 and RAID10

As suggested by Neil Brown[1], this limitation seems to be
deprecated.

With plugging in use, writes are processed behind the raid thread
and conf->pending_count is not increased. This limitation occurs only
if caller doesn't use plugs.

It can be avoided and often it is (with plugging). There are no reports
that queue is growing to enormous size so remove queue limitation for
non-plugged IOs too.

[1] https://lore.kernel.org/linux-raid/162496301481.7211.18031090130574610495@noble.neil.brown.name

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/raid10.c