From 21a05ea1baa0838b0a610df98e59512244e642fd Mon Sep 17 00:00:00 2001 From: "Hongchao.Zhang@Sun.COM" Date: Fri, 9 Apr 2010 17:35:27 +0800 Subject: [PATCH] b=22307 initialize the child_res_id for OPEN lock in mds_open, initialize the child_res_id before enqueuing the OPEN lock for the child inode, then to avoid senting wrong ldlm_res_id to client. i=johann --- lustre/mds/mds_open.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 5460b10..31700ac 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -1354,6 +1354,7 @@ found_child: /* In case of replay we do not get a lock assuming that the caller has it already */ + memset(&child_res_id, 0, sizeof(child_res_id)); child_res_id.name[0] = dchild->d_inode->i_ino; child_res_id.name[1] = dchild->d_inode->i_generation; -- 1.8.3.1