Skip to content
Snippets Groups Projects
Commit b3815b95 authored by Wang Di's avatar Wang Di
Browse files

Branch: b1_6

checking stale with right fid in ll_revalidate_it.
b:12401
r:green, shadow
parent 7cb202a5
No related branches found
No related tags found
No related merge requests found
...@@ -524,9 +524,13 @@ do_lookup: ...@@ -524,9 +524,13 @@ do_lookup:
struct mds_body *mds_body = lustre_msg_buf(req->rq_repmsg, struct mds_body *mds_body = lustre_msg_buf(req->rq_repmsg,
DLM_REPLY_REC_OFF, DLM_REPLY_REC_OFF,
sizeof(*mds_body)); sizeof(*mds_body));
struct ll_fid fid = { 0 };
if (de->d_inode)
ll_inode2fid(&fid, de->d_inode);
/* see if we got same inode, if not - return error */ /* see if we got same inode, if not - return error */
if(!memcmp(&op_data.fid2, &mds_body->fid1, if(!memcmp(&fid, &mds_body->fid1, sizeof(struct ll_fid)))
sizeof(op_data.fid2)))
goto revalidate_finish; goto revalidate_finish;
ll_intent_release(it); ll_intent_release(it);
} }
......
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