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)
committerDavid Teigland <teigland@redhat.com>
Tue, 8 Nov 2022 18:59:41 +0000 (12:59 -0600)
commit775af207464bd28a2086f8399c0b2a3f1f40c7ae
tree2c9cfa331154dd69c339e60afc0dd411d23935e6
parent3e54c9e80e68b765d8877023d93f1eea1b9d1c54
fs: dlm: use WARN_ON_ONCE() instead of WARN_ON()

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>
fs/dlm/midcomms.c