]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs: dlm: add check if dlm is currently running
authorAlexander Aring <aahringo@redhat.com>
Mon, 1 Mar 2021 22:05:13 +0000 (17:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:27 +0000 (10:29 +0200)
commit5369d3bf96495d6558947ae40f1a106448f8e615
tree340715b3229092d05b798434a4e52449b2dc36c3
parent0881ef8dc7db7cd1aa7ea2804cb8335d8ce38d04
fs: dlm: add check if dlm is currently running

[ Upstream commit 517461630d1c25ee4dfc1dee80973a64189d6ccf ]

This patch adds checks for dlm config attributes regarding to protocol
parameters as it makes only sense to change them when dlm is not running.
It also adds a check for valid protocol specifiers and return invalid
argument if they are not supported.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dlm/config.c
fs/dlm/lowcomms.c
fs/dlm/lowcomms.h