]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7384795a67921a74b547b46a9599b695a1e6429
tree4d604f722a7d730a910094e5c86903b189ff4001
parentb1cdfd7fc03dbfe3371476851706f0eac80c5a84
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