fs: dlm: check for pending users filling buffers
authorAlexander Aring <aahringo@redhat.com>
Tue, 30 Nov 2021 19:47:15 +0000 (14:47 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 7 Dec 2021 18:42:26 +0000 (12:42 -0600)
commitbcbfea41e1f9d516faed1faf0f2d390c000bf0d9
treebf03db700022fd8737bb5045009800ccd47894f9
parentf70813d6a5fce7bde411272cfe1ab565a4254266
fs: dlm: check for pending users filling buffers

Currently we don't care if the DLM application stack is filling buffers
(not committed yet) while we transmit some already committed buffers.
By checking on active writequeue users before dequeue a writequeue entry
we know there is coming more data and do nothing. We wait until the send
worker will be triggered again if the writequeue entry users hit zero.

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