OSDN Git Service

dlm: Don't swamp the CPU with callbacks queued during recovery
authorBob Peterson <rpeterso@redhat.com>
Thu, 8 Nov 2018 19:04:50 +0000 (14:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:13:04 +0000 (10:13 +0100)
commitdd307a8d156bf0d2a53bd389f48f90f86d604496
tree81c1251418530b0dd46b00e0de10b56d5cd6af58
parentaeef84f38288f15d80905513c4eaf5b5cc66badd
dlm: Don't swamp the CPU with callbacks queued during recovery

[ Upstream commit 216f0efd19b9cc32207934fd1b87a45f2c4c593e ]

Before this patch, recovery would cause all callbacks to be delayed,
put on a queue, and afterward they were all queued to the callback
work queue. This patch does the same thing, but occasionally takes
a break after 25 of them so it won't swamp the CPU at the expense
of other RT processes like corosync.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dlm/ast.c