Whamcloud - gitweb
LU-16371 ldlm: clear lock converting flag on resource cleanup 39/49339/3
authorBobi Jam <bobijam@whamcloud.com>
Wed, 7 Dec 2022 16:03:20 +0000 (00:03 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 4 Apr 2023 14:33:27 +0000 (14:33 +0000)
During resource cleanup clear lock's converting flag so that
ldlm_cli_cancel() won't erroneously trip the assertion, the assertion
is used for normal lock revoke callbacks.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I1be4d7f16dbc7e026b460fd5358a0fe509b97a59
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49339
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ldlm/ldlm_resource.c

index 155406e..47b40d1 100644 (file)
@@ -1056,6 +1056,7 @@ static void cleanup_resource(struct ldlm_resource *res, struct list_head *q,
                 * can match this lock. */
                ldlm_set_cbpending(lock);
                ldlm_set_failed(lock);
+               ldlm_clear_converting(lock);
                lock->l_flags |= flags;
 
                /* ... without sending a CANCEL message for local_only. */