fs: dlm: use list_empty() to check last iteration
authorAlexander Aring <aahringo@redhat.com>
Tue, 30 Nov 2021 19:47:14 +0000 (14:47 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 7 Dec 2021 18:42:26 +0000 (12:42 -0600)
commitf70813d6a5fce7bde411272cfe1ab565a4254266
tree4d604f722a7d730a910094e5c86903b189ff4001
parent1b9beda83e27a0c2cd75d1cb743c297c7b36c844
fs: dlm: use list_empty() to check last iteration

This patch will use list_empty(&ls->ls_cb_delay) to check for last list
iteration. In case of a multiply count of MAX_CB_QUEUE and the list is
empty we do a extra goto more which we can avoid by checking on
list_empty().

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