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>
Tue, 12 Feb 2019 18:45:57 +0000 (19:45 +0100)
commitecaa10908412ccd001175f4ccce8ef78ae53c363
tree3af586bbd073b0e47dc5b60ca4fa34c1c4b07229
parent0ca40937b6e4411e0913258489a13cb654581e86
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