]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs: dlm: use WARN_ON_ONCE() instead of WARN_ON()
authorAlexander Aring <aahringo@redhat.com>
Thu, 27 Oct 2022 20:45:27 +0000 (16:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:18 +0000 (08:50 +0100)
commit29682b8a3dbae70392ef4dbb8d34703596409c9b
tree6a05364ca78e2af5060a1959238c0de684846306
parenta3b0e9ac3c2447008db942d51f593841d8329e99
fs: dlm: use WARN_ON_ONCE() instead of WARN_ON()

[ Upstream commit 775af207464bd28a2086f8399c0b2a3f1f40c7ae ]

To not get the console spammed about WARN_ON() of invalid states in the
dlm midcomms hot path handling we switch to WARN_ON_ONCE() to get it
only once that there might be an issue with the midcomms state handling.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Stable-dep-of: 7354fa4ef697 ("fs: dlm: be sure to call dlm_send_queue_flush()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dlm/midcomms.c