Skip to content
Snippets Groups Projects
Commit 460b0eba authored by Bobi Jam's avatar Bobi Jam
Browse files

Branch HEAD

b=15924
i=green, johann

Severity   : major
Bugzilla   : 15924
Description: do not process already freed flock
Details    : flock can possibly be freed by another thread before it reaches
             to ldlm_flock_completion_ast.
parent 52419a45
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,12 @@ tbd Sun Microsystems, Inc.
* RHEL 4 and RHEL 5/SLES 10 clients behaves differently on 'cd' to a
removed cwd "./" (refer to Bugzilla 14399).
Severity : major
Bugzilla : 15924
Description: do not process already freed flock
Details : flock can possibly be freed by another thread before it reaches
to ldlm_flock_completion_ast.
Severity : normal
Bugzilla : 14480
Description: LBUG during stress test
......
......@@ -526,6 +526,13 @@ ldlm_flock_completion_ast(struct ldlm_lock *lock, int flags, void *data)
RETURN(rc);
granted:
/* before flock's complete ast gets here, the flock
* can possibly be freed by another thread
*/
if (lock->l_destroyed) {
LDLM_DEBUG(lock, "already destroyed by another thread");
RETURN(0);
}
LDLM_DEBUG(lock, "client-side enqueue granted");
ns = lock->l_resource->lr_namespace;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment