fs: dlm: move state change into else branch
authorAlexander Aring <aahringo@redhat.com>
Thu, 12 Jan 2023 22:18:48 +0000 (17:18 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 23 Jan 2023 22:27:27 +0000 (16:27 -0600)
commitef7ef015eb333c8954d7165d216ec0c774d7e4e4
tree7a6dc304606db9c4c3dc7b3caf98445c298e993c
parent3186409711e64ed0a0fa767fad555a5e655022da
fs: dlm: move state change into else branch

Currently we can switch at first into DLM_CLOSE_WAIT state and then do
another state change if a condition is true. Instead of doing two state
changes we handle the other state change inside an else branch of this
condition.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/midcomms.c