diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2021-12-17 10:29:55 +0100 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2022-01-06 17:37:02 +0100 |
commit | a92ce0feffeed8b91f02dac85246d1205e4a64b6 (patch) | |
tree | 6d046d93295db91b35d8cc470cb2a4f0103549ec /drivers/md/raid1-10.c | |
parent | md/raid5: play nice with PREEMPT_RT (diff) | |
download | linux-a92ce0feffeed8b91f02dac85246d1205e4a64b6.tar.xz linux-a92ce0feffeed8b91f02dac85246d1205e4a64b6.zip |
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>
Diffstat (limited to 'drivers/md/raid1-10.c')
-rw-r--r-- | drivers/md/raid1-10.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/md/raid1-10.c b/drivers/md/raid1-10.c index 54db34163968..83f9a4f3d82e 100644 --- a/drivers/md/raid1-10.c +++ b/drivers/md/raid1-10.c @@ -22,12 +22,6 @@ #define BIO_SPECIAL(bio) ((unsigned long)bio <= 2) -/* When there are this many requests queue to be written by - * the raid thread, we become 'congested' to provide back-pressure - * for writeback. - */ -static int max_queued_requests = 1024; - /* for managing resync I/O pages */ struct resync_pages { void *raid_bio; |