Skip to content
Snippets Groups Projects
Commit 46d6f7c7 authored by Johann Lombardi's avatar Johann Lombardi
Browse files

Branch HEAD

b=16496
i=bzzz
i=vitaly

fix a race between class_handle_unhash() and class_handle2object()
introduced in lustre 1.6.5 by bug 13622. check for h_in instead of
h_cookie in class_handle2object().
parent 5a702c82
No related branches found
No related tags found
No related merge requests found
...@@ -1225,6 +1225,12 @@ Details : looking up an inode via iopen with the wrong generation number can ...@@ -1225,6 +1225,12 @@ Details : looking up an inode via iopen with the wrong generation number can
assertion failure in iopen since the inode's dentry list contains assertion failure in iopen since the inode's dentry list contains
both a connected and disconnected dentry. both a connected and disconnected dentry.
Severity : normal
Bugzilla : 16496
Description: assertion failure in ldlm_handle2lock()
Details : fix a race between class_handle_unhash() and class_handle2object()
introduced in lustre 1.6.5 by bug 13622.
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com> 2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com>
......
...@@ -195,7 +195,7 @@ void *class_handle2object(__u64 cookie) ...@@ -195,7 +195,7 @@ void *class_handle2object(__u64 cookie)
continue; continue;
spin_lock(&h->h_lock); spin_lock(&h->h_lock);
if (likely(h->h_cookie != 0)) { if (likely(h->h_in != 0)) {
h->h_addref(h); h->h_addref(h);
retval = h; retval = h;
} }
......
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